Rev 792 | Rev 977 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 792 | Rev 967 | ||
|---|---|---|---|
| Line 27... | Line 27... | ||
| 27 | */ |
27 | */ |
| 28 | 28 | ||
| 29 | #ifndef __sparc64_PAGE_H__ |
29 | #ifndef __sparc64_PAGE_H__ |
| 30 | #define __sparc64_PAGE_H__ |
30 | #define __sparc64_PAGE_H__ |
| 31 | 31 | ||
| 32 | #include <mm/page.h> |
- | |
| 33 | #include <arch/mm/frame.h> |
32 | #include <arch/mm/frame.h> |
| 34 | #include <arch/types.h> |
- | |
| 35 | 33 | ||
| 36 | #define PAGE_WIDTH FRAME_WIDTH |
34 | #define PAGE_WIDTH FRAME_WIDTH |
| 37 | #define PAGE_SIZE FRAME_SIZE |
35 | #define PAGE_SIZE FRAME_SIZE |
| 38 | 36 | ||
| - | 37 | #ifdef KERNEL |
|
| - | 38 | ||
| - | 39 | #include <mm/page.h> |
|
| - | 40 | #include <arch/types.h> |
|
| - | 41 | ||
| 39 | #define KA2PA(x) ((__address) (x)) |
42 | #define KA2PA(x) ((__address) (x)) |
| 40 | #define PA2KA(x) ((__address) (x)) |
43 | #define PA2KA(x) ((__address) (x)) |
| 41 | 44 | ||
| 42 | #define SET_PTL0_ADDRESS_ARCH(x) /**< To be removed as situation permits. */ |
45 | #define SET_PTL0_ADDRESS_ARCH(x) /**< To be removed as situation permits. */ |
| 43 | 46 | ||
| Line 51... | Line 54... | ||
| 51 | 54 | ||
| 52 | typedef union page_address page_address_t; |
55 | typedef union page_address page_address_t; |
| 53 | 56 | ||
| 54 | extern void page_arch_init(void); |
57 | extern void page_arch_init(void); |
| 55 | 58 | ||
| - | 59 | #endif /* KERNEL */ |
|
| - | 60 | ||
| 56 | #endif |
61 | #endif |