Rev 164 | Rev 172 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 164 | Rev 169 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | #include <arch/mm/frame.h> |
33 | #include <arch/mm/frame.h> |
34 | #include <arch/types.h> |
34 | #include <arch/types.h> |
35 | 35 | ||
36 | #define PAGE_SIZE FRAME_SIZE |
36 | #define PAGE_SIZE FRAME_SIZE |
37 | 37 | ||
38 | #define KA2PA(x) ((x) - 0x80000000) |
38 | #define KA2PA(x) (((__address) (x)) - 0x80000000) |
39 | #define PA2KA(x) ((x) + 0x80000000) |
39 | #define PA2KA(x) (((__address) (x)) + 0x80000000) |
40 | 40 | ||
41 | #define PTL0_INDEX_ARCH(vaddr) 0 |
41 | #define PTL0_INDEX_ARCH(vaddr) 0 |
42 | #define PTL1_INDEX_ARCH(vaddr) 0 |
42 | #define PTL1_INDEX_ARCH(vaddr) 0 |
43 | #define PTL2_INDEX_ARCH(vaddr) 0 |
43 | #define PTL2_INDEX_ARCH(vaddr) 0 |
44 | #define PTL3_INDEX_ARCH(vaddr) 0 |
44 | #define PTL3_INDEX_ARCH(vaddr) 0 |