]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/kern/arm/bsp/pxa/bootstrap-arm-pxa.cpp
836e3f6206b16b273be8be478eb94dbbe93981f3
[l4.git] / kernel / fiasco / src / kern / arm / bsp / pxa / bootstrap-arm-pxa.cpp
1 //-----------------------------------------------------------------------------
2 INTERFACE [arm && pxa]:
3
4 enum {
5   Cache_flush_area = 0xa0100000, // XXX: hacky
6 };
7
8 //-----------------------------------------------------------------------------
9 IMPLEMENTATION [arm && pxa]:
10
11 void
12 map_hw(void *pd)
13 {
14   // map the cache flush area to 0xef000000
15   map_1mb(pd, Mem_layout::Cache_flush_area, Mem_layout::Flush_area_phys_base, true, false);
16
17   map_dev<Mem_layout::Devices0_phys_base>(pd, 0);
18   map_dev<Mem_layout::Devices1_phys_base>(pd, 1);
19   map_dev<Mem_layout::Devices2_phys_base>(pd, 2);
20 }