PTE flag comments
This commit is contained in:
parent
1d3036da7a
commit
eb6dd2be2c
1 changed files with 10 additions and 0 deletions
|
@ -429,6 +429,16 @@ typedef u64 *pagetable_t; // 512 PTEs
|
||||||
/**
|
/**
|
||||||
* Page Table Entry Flags
|
* Page Table Entry Flags
|
||||||
*/
|
*/
|
||||||
|
/** Valid */
|
||||||
|
#define PTE_V (1L << 0)
|
||||||
|
/** Readable */
|
||||||
|
#define PTE_R (1L << 1)
|
||||||
|
/** Writable */
|
||||||
|
#define PTE_W (1L << 2)
|
||||||
|
/** Executable */
|
||||||
|
#define PTE_X (1L << 3)
|
||||||
|
/** User-accessible */
|
||||||
|
#define PTE_U (1L << 4)
|
||||||
|
|
||||||
#define PTE_V (1L << 0) /** PTE Valid */
|
#define PTE_V (1L << 0) /** PTE Valid */
|
||||||
#define PTE_R (1L << 1) /** PTE Readable */
|
#define PTE_R (1L << 1) /** PTE Readable */
|
||||||
|
|
Loading…
Reference in a new issue