Skip to content
Snippets Groups Projects
Commit 9b646462 authored by Anna Lyons's avatar Anna Lyons
Browse files

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.
parent 01be26a7
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment