Move page type constants to an enum

svn: r12247
This commit is contained in:
Kevin Tew 2008-11-05 21:04:02 +00:00
parent 22706f29b6
commit 58eaf2a88a

View File

@ -265,15 +265,16 @@ struct mpage {
#define MAX_OBJECT_SIZEW (gcBYTES_TO_WORDS(APAGE_SIZE) - PREFIX_WSIZE - 3) #define MAX_OBJECT_SIZEW (gcBYTES_TO_WORDS(APAGE_SIZE) - PREFIX_WSIZE - 3)
/* the page type constants */ /* the page type constants */
#define PAGE_TAGGED 0 enum {
#define PAGE_ATOMIC 1 PAGE_TAGGED = 0,
#define PAGE_ARRAY 2 PAGE_ATOMIC = 1,
#define PAGE_TARRAY 3 PAGE_ARRAY = 2,
#define PAGE_XTAGGED 4 PAGE_TARRAY = 3,
#define PAGE_BIG 5 PAGE_XTAGGED = 4,
PAGE_BIG = 5,
/* the number of page types. */ /* the number of page types. */
#define PAGE_TYPES 6 PAGE_TYPES = 6,
};
/* the page map makes a nice mapping from addresses to pages, allowing /* the page map makes a nice mapping from addresses to pages, allowing
fairly fast lookup. this is useful. */ fairly fast lookup. this is useful. */