Rev 3971 | Go to most recent revision | Show entire file | Regard 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 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 | */ |