Changeset 383 for trunk/hal/x86_64
- Timestamp:
- Aug 16, 2017, 11:13:27 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_gpt.c
r368 r383 236 236 /* -------------------------------------------------------------------------- */ 237 237 238 /****************************************************************************************239 * These global variables defines the masks for the Generic Page Table Entry attributes,240 * and must be defined in all GPT implementation.241 ***************************************************************************************/242 243 uint32_t GPT_MAPPED;244 uint32_t GPT_SMALL;245 uint32_t GPT_READABLE;246 uint32_t GPT_WRITABLE;247 uint32_t GPT_EXECUTABLE;248 uint32_t GPT_CACHABLE;249 uint32_t GPT_USER;250 uint32_t GPT_DIRTY;251 uint32_t GPT_ACCESSED;252 uint32_t GPT_GLOBAL;253 uint32_t GPT_COW;254 uint32_t GPT_SWAP;255 uint32_t GPT_LOCKED;256 257 238 error_t hal_gpt_create(gpt_t *gpt) 258 239 { … … 298 279 gpt->page = GET_PTR(page_xp); 299 280 300 /* initialize PTE entries attributes masks */301 GPT_MAPPED = PG_V;302 GPT_SMALL = 0;303 GPT_READABLE = PG_V;304 GPT_WRITABLE = PG_RW;305 GPT_EXECUTABLE = 0;306 GPT_CACHABLE = 0;307 GPT_USER = PG_u;308 GPT_DIRTY = 0;309 GPT_ACCESSED = 0;310 GPT_GLOBAL = PG_G;311 GPT_COW = 0;312 GPT_SWAP = 0;313 GPT_LOCKED = 0;314 281 315 282 return 0;
Note: See TracChangeset
for help on using the changeset viewer.