Rev 3971 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3971 | Rev 3973 | ||
---|---|---|---|
Line 46... | Line 46... | ||
46 | #include <panic.h> |
46 | #include <panic.h> |
47 | #include <arch/asm.h> |
47 | #include <arch/asm.h> |
48 | #include <arch/barrier.h> |
48 | #include <arch/barrier.h> |
49 | #include <memstr.h> |
49 | #include <memstr.h> |
50 | #include <align.h> |
50 | #include <align.h> |
51 | #include <ddi/ddi.h> |
- | |
52 | - | ||
53 | /** Physical memory area for devices. */ |
- | |
54 | static parea_t dev_area; |
- | |
55 | 51 | ||
56 | static void set_environment(void); |
52 | static void set_environment(void); |
57 | 53 | ||
58 | /** Initialize ia64 virtual address translation subsystem. */ |
54 | /** Initialize ia64 virtual address translation subsystem. */ |
59 | void page_arch_init(void) |
55 | void page_arch_init(void) |
Line 65... | Line 61... | ||
65 | 61 | ||
66 | /** Initialize VHPT and region registers. */ |
62 | /** Initialize VHPT and region registers. */ |
67 | void set_environment(void) |
63 | void set_environment(void) |
68 | { |
64 | { |
69 | region_register rr; |
65 | region_register rr; |
70 | pta_register pta; |
66 | pta_register pta; |
71 | int i; |
67 | int i; |
72 | #ifdef CONFIG_VHPT |
68 | #ifdef CONFIG_VHPT |
73 | uintptr_t vhpt_base; |
69 | uintptr_t vhpt_base; |
74 | #endif |
70 | #endif |
75 | 71 | ||
76 | /* |
72 | /* |
77 | * First set up kernel region register. |
73 | * First set up kernel region register. |
Line 276... | Line 272... | ||
276 | { |
272 | { |
277 | /* THIS is a dirty hack. */ |
273 | /* THIS is a dirty hack. */ |
278 | return (uintptr_t)((uint64_t)(PA2KA(physaddr)) + VIO_OFFSET); |
274 | return (uintptr_t)((uint64_t)(PA2KA(physaddr)) + VIO_OFFSET); |
279 | } |
275 | } |
280 | 276 | ||
281 | void hw_area(void) |
- | |
282 | { |
- | |
283 | dev_area.pbase = end_frame; |
- | |
284 | dev_area.frames = SIZE2FRAMES(0x7fffffffffffffffUL - end_frame); |
- | |
285 | ddi_parea_register(&dev_area); |
- | |
286 | } |
- | |
287 | - | ||
288 | /** @} |
277 | /** @} |
289 | */ |
278 | */ |