]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/kern/arm/bsp/realview/boot_mp-arm-realview.cpp
update
[l4.git] / kernel / fiasco / src / kern / arm / bsp / realview / boot_mp-arm-realview.cpp
1 INTERFACE [arm && mp && realview]:
2
3 #include "types.h"
4
5 class Boot_mp
6 {
7 };
8
9 IMPLEMENTATION [arm && mp && realview]:
10
11 #include "io.h"
12 #include "ipi.h"
13 #include "platform.h"
14
15 PUBLIC
16 void
17 Boot_mp::start_ap_cpus(Address phys_tramp_mp_addr)
18 {
19   // set physical start address for AP CPUs
20   Platform::write(Platform::Sys::Flags_clr, 0xffffffff);
21   Platform::write(Platform::Sys::Flags, phys_tramp_mp_addr);
22
23   // wake up AP CPUs, always from CPU 0
24   Ipi::bcast(Ipi::Global_request, 0);
25 }
26
27 PUBLIC
28 void
29 Boot_mp::cleanup()
30 {}