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