Rev 1787 | Rev 2089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 2007 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #include <arch/mm/frame.h> |
38 | #include <arch/mm/frame.h> |
39 | 39 | ||
40 | #define PAGE_WIDTH FRAME_WIDTH |
40 | #define PAGE_WIDTH FRAME_WIDTH |
41 | #define PAGE_SIZE FRAME_SIZE |
41 | #define PAGE_SIZE FRAME_SIZE |
42 | 42 | ||
- | 43 | #define PAGE_COLOR_BITS 0 /* dummy */ |
|
- | 44 | ||
43 | #ifdef KERNEL |
45 | #ifdef KERNEL |
44 | 46 | ||
45 | #ifndef __ASM__ |
47 | #ifndef __ASM__ |
46 | # define KA2PA(x) (((uintptr_t) (x)) - 0x80000000) |
48 | # define KA2PA(x) (((uintptr_t) (x)) - 0x80000000) |
47 | # define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) |
49 | # define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) |