Changeset 383 for trunk/hal/generic
- Timestamp:
- Aug 16, 2017, 11:13:27 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_gpt.h
r315 r383 45 45 46 46 /**************************************************************************************** 47 * These global variables define the masks for the Generic Page Table Entry attributes. 48 * The actual values must be defined in the implementation (hal_gpt.c file). 47 * These macros define the masks for the Generic Page Table Entry attributes. 49 48 ***************************************************************************************/ 50 49 51 extern uint32_t GPT_MAPPED;/*! PTE is mapped */52 extern uint32_t GPT_SMALL;/*! PTE is a small page */53 extern uint32_t GPT_READABLE;/*! PTE is readable */54 extern uint32_t GPT_WRITABLE;/*! PTE is writable */55 extern uint32_t GPT_EXECUTABLE;/*! PTE is executable */56 extern uint32_t GPT_CACHABLE;/*! PTE can be cached */57 extern uint32_t GPT_USER;/*! PTE is user accessible */58 extern uint32_t GPT_DIRTY;/*! PTE has been "recently" written */59 extern uint32_t GPT_ACCESSED;/*! PTE has been "recently" accessed */60 extern uint32_t GPT_GLOBAL;/*! PTE is kept in TLB at context switch */61 extern uint32_t GPT_COW;/*! PTE must be copied on write */62 extern uint32_t GPT_SWAP;/*! PTE swapped on disk (not implemented yet) */63 extern uint32_t GPT_LOCKED;/*! PTE is protected against concurrent access */50 #define GPT_MAPPED 0x0000 /*! PTE is mapped */ 51 #define GPT_SMALL 0x0001 /*! PTE is a small page */ 52 #define GPT_READABLE 0x0002 /*! PTE is readable */ 53 #define GPT_WRITABLE 0x0004 /*! PTE is writable */ 54 #define GPT_EXECUTABLE 0x0008 /*! PTE is executable */ 55 #define GPT_CACHABLE 0x0010 /*! PTE can be cached */ 56 #define GPT_USER 0x0020 /*! PTE is user accessible */ 57 #define GPT_DIRTY 0x0040 /*! PTE has been "recently" written */ 58 #define GPT_ACCESSED 0x0080 /*! PTE has been "recently" accessed */ 59 #define GPT_GLOBAL 0x0100 /*! PTE is kept in TLB at context switch */ 60 #define GPT_COW 0x0200 /*! PTE must be copied on write */ 61 #define GPT_SWAP 0x0400 /*! PTE swapped on disk (not implemented yet) */ 62 #define GPT_LOCKED 0x0800 /*! PTE is protected against concurrent access */ 64 63 65 64 /****************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.