Changeset 383 for trunk/hal/x86_64


Ignore:
Timestamp:
Aug 16, 2017, 11:13:27 AM (7 years ago)
Author:
max@…
Message:

Use constant flags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_gpt.c

    r368 r383  
    236236/* -------------------------------------------------------------------------- */
    237237
    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 
    257238error_t hal_gpt_create(gpt_t *gpt)
    258239{
     
    298279        gpt->page = GET_PTR(page_xp);
    299280
    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;
    314281
    315282        return 0;
Note: See TracChangeset for help on using the changeset viewer.