Rev 3940 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3940 | Rev 3973 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | 34 | ||
35 | #include <arch/mm/page.h> |
35 | #include <arch/mm/page.h> |
36 | #include <genarch/mm/page_pt.h> |
36 | #include <genarch/mm/page_pt.h> |
37 | #include <mm/page.h> |
37 | #include <mm/page.h> |
38 | #include <mm/frame.h> |
38 | #include <mm/frame.h> |
39 | #include <ddi/ddi.h> |
- | |
40 | - | ||
41 | /** Physical memory area for devices. */ |
- | |
42 | static parea_t dev_area; |
- | |
43 | 39 | ||
44 | void page_arch_init(void) |
40 | void page_arch_init(void) |
45 | { |
41 | { |
46 | page_mapping_operations = &pt_mapping_operations; |
42 | page_mapping_operations = &pt_mapping_operations; |
47 | } |
43 | } |
Line 53... | Line 49... | ||
53 | uintptr_t hw_map(uintptr_t physaddr, size_t size) |
49 | uintptr_t hw_map(uintptr_t physaddr, size_t size) |
54 | { |
50 | { |
55 | return physaddr + 0xa0000000; |
51 | return physaddr + 0xa0000000; |
56 | } |
52 | } |
57 | 53 | ||
58 | void hw_area(void) |
- | |
59 | { |
- | |
60 | dev_area.pbase = end_frame; |
- | |
61 | dev_area.frames = SIZE2FRAMES(0xffffffff - end_frame); |
- | |
62 | ddi_parea_register(&dev_area); |
- | |
63 | } |
- | |
64 | - | ||
65 | /** @} |
54 | /** @} |
66 | */ |
55 | */ |