Rev 1980 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1980 | 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 | #ifndef __ASM__ |
45 | #ifndef __ASM__ |
| 44 | # define KA2PA(x) (((uintptr_t) (x)) - 0x80000000) |
46 | # define KA2PA(x) (((uintptr_t) (x)) - 0x80000000) |
| 45 | # define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) |
47 | # define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) |
| 46 | #else |
48 | #else |
| 47 | # define KA2PA(x) ((x) - 0x80000000) |
49 | # define KA2PA(x) ((x) - 0x80000000) |