Rev 957 | Rev 977 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 957 | Rev 967 | ||
|---|---|---|---|
| Line 27... | Line 27... | ||
| 27 | */ |
27 | */ |
| 28 | 28 | ||
| 29 | #ifndef __ppc32_PAGE_H__ |
29 | #ifndef __ppc32_PAGE_H__ |
| 30 | #define __ppc32_PAGE_H__ |
30 | #define __ppc32_PAGE_H__ |
| 31 | 31 | ||
| - | 32 | #include <arch/mm/frame.h> |
|
| - | 33 | ||
| 32 | #define PAGE_WIDTH FRAME_WIDTH |
34 | #define PAGE_WIDTH FRAME_WIDTH |
| 33 | #define PAGE_SIZE FRAME_SIZE |
35 | #define PAGE_SIZE FRAME_SIZE |
| 34 | 36 | ||
| - | 37 | #ifdef KERNEL |
|
| - | 38 | ||
| 35 | #ifndef __ASM__ |
39 | #ifndef __ASM__ |
| 36 | # define KA2PA(x) (((__address) (x)) - 0x80000000) |
40 | # define KA2PA(x) (((__address) (x)) - 0x80000000) |
| 37 | # define PA2KA(x) (((__address) (x)) + 0x80000000) |
41 | # define PA2KA(x) (((__address) (x)) + 0x80000000) |
| 38 | #else |
42 | #else |
| 39 | # define KA2PA(x) ((x) - 0x80000000) |
43 | # define KA2PA(x) ((x) - 0x80000000) |
| Line 82... | Line 86... | ||
| 82 | 86 | ||
| 83 | extern void page_arch_init(void); |
87 | extern void page_arch_init(void); |
| 84 | 88 | ||
| 85 | #endif /* __ASM__ */ |
89 | #endif /* __ASM__ */ |
| 86 | 90 | ||
| - | 91 | #endif /* KERNEL */ |
|
| - | 92 | ||
| 87 | #endif |
93 | #endif |