]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/kern/arm/bsp/realview/bootstrap-arm-realview.cpp
update
[l4.git] / kernel / fiasco / src / kern / arm / bsp / realview / bootstrap-arm-realview.cpp
1 INTERFACE [arm && realview]:
2
3 #include "mem_layout.h"
4
5 enum { Cache_flush_area = 0, };
6
7 //-----------------------------------------------------------------------------
8 IMPLEMENTATION [arm && realview && realview_eb && !(mpcore || (armca9 && mp))]:
9
10 static void map_hw2(void *)
11 {}
12
13 //-----------------------------------------------------------------------------
14 IMPLEMENTATION [arm && realview && realview_eb && (mpcore || (armca9 && mp))]:
15
16 static void map_hw2(void *pd)
17 {
18   map_1mb(pd, Mem_layout::Mp_scu_map_base, Mem_layout::Mp_scu_phys_base,
19           false, false);
20 }
21
22 //-----------------------------------------------------------------------------
23 IMPLEMENTATION [arm && realview && (realview_pb11mp || realview_pbx)]:
24
25 static void map_hw2(void *pd)
26 {
27   map_1mb(pd, Mem_layout::Devices1_map_base, Mem_layout::Devices1_phys_base,
28           false, false);
29   map_1mb(pd, Mem_layout::Devices2_map_base, Mem_layout::Devices2_phys_base,
30           false, false);
31 }
32
33 //-----------------------------------------------------------------------------
34 IMPLEMENTATION [arm && realview && realview_vexpress]:
35
36 static void map_hw2(void *pd)
37 {
38   map_1mb(pd, Mem_layout::Devices1_map_base, Mem_layout::Devices1_phys_base,
39           false, false);
40 }
41
42 //-----------------------------------------------------------------------------
43 IMPLEMENTATION [arm && realview]:
44
45 void
46 map_hw(void *pd)
47 {
48   // map devices
49   map_1mb(pd, Mem_layout::Devices0_map_base, Mem_layout::Devices0_phys_base, false, false);
50   map_hw2(pd);
51 }