libsel4: consistent definition of seL4_PGDBits
Previously seL4_PGDBits was calculated, which is inconstent with the rest of the composite constants in libsel4, and makes size constants harder to parse from the C. This commit makes seL4_PGDBits consistant with other definitions, by making the definition an integer and checking it with a compile time assert.
This commit is contained in:
parent
01be26a779
commit
9b6464621f
1 changed files with 4 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ enum {
|
|||
#define seL4_SuperSectionBits 25
|
||||
#define seL4_PGDEntryBits 3
|
||||
#define seL4_PGDIndexBits 2
|
||||
#define seL4_PGDBits (seL4_PGDIndexBits + seL4_PGDEntryBits)
|
||||
#define seL4_PGDBits 5
|
||||
#define seL4_PageDirEntryBits 3
|
||||
#define seL4_PageDirIndexBits 11
|
||||
#define seL4_VCPUBits 12
|
||||
|
|
@ -182,6 +182,9 @@ enum {
|
|||
SEL4_SIZE_SANITY(seL4_PageTableEntryBits, seL4_PageTableIndexBits, seL4_PageTableBits);
|
||||
SEL4_SIZE_SANITY(seL4_PageDirEntryBits, seL4_PageDirIndexBits, seL4_PageDirBits);
|
||||
SEL4_SIZE_SANITY(seL4_WordSizeBits, seL4_ASIDPoolIndexBits, seL4_ASIDPoolBits);
|
||||
#ifdef seL4_PGDBits
|
||||
SEL4_SIZE_SANITY(seL4_PGDEntryBits, seL4_PGDIndexBits, seL4_PGDBits);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Untyped size limits */
|
||||
|
|
|
|||
Loading…
Reference in a new issue