]> rtime.felk.cvut.cz Git - jailhouse.git/blob - hypervisor/arch/arm/setup.c
core: Rename "Linux cell" to "root cell"
[jailhouse.git] / hypervisor / arch / arm / setup.c
1 /*
2  * Jailhouse, a Linux-based partitioning hypervisor
3  *
4  * Copyright (c) Siemens AG, 2013
5  *
6  * Authors:
7  *  Jan Kiszka <jan.kiszka@siemens.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2.  See
10  * the COPYING file in the top-level directory.
11  */
12
13 #include <jailhouse/entry.h>
14
15 int arch_init_early(struct cell *root_cell)
16 {
17         return -ENOSYS;
18 }
19
20 int arch_cpu_init(struct per_cpu *cpu_data)
21 {
22         return -ENOSYS;
23 }
24
25 int arch_init_late(struct cell *root_cell)
26 {
27         return -ENOSYS;
28 }
29
30 void arch_cpu_activate_vmm(struct per_cpu *cpu_data)
31 {
32         while (1);
33 }
34
35 void arch_cpu_restore(struct per_cpu *cpu_data)
36 {
37 }
38
39 // catch missing symbols
40 #include <jailhouse/printk.h>
41 #include <jailhouse/processor.h>
42 #include <jailhouse/control.h>
43 #include <jailhouse/string.h>
44 #include <jailhouse/paging.h>
45 void arch_dbg_write_init(void) {}
46 int phys_processor_id(void) { return 0; }
47 void arch_suspend_cpu(unsigned int cpu_id) {}
48 void arch_resume_cpu(unsigned int cpu_id) {}
49 void arch_reset_cpu(unsigned int cpu_id) {}
50 void arch_park_cpu(unsigned int cpu_id) {}
51 void arch_shutdown_cpu(unsigned int cpu_id) {}
52 int arch_cell_create(struct per_cpu *cpu_data, struct cell *new_cell)
53 { return -ENOSYS; }
54 int arch_map_memory_region(struct cell *cell,
55                            const struct jailhouse_memory *mem)
56 { return -ENOSYS; }
57 void arch_unmap_memory_region(struct cell *cell,
58                               const struct jailhouse_memory *mem) {}
59 void arch_cell_destroy(struct per_cpu *cpu_data, struct cell *new_cell) {}
60 void *memcpy(void *dest, const void *src, unsigned long n) { return NULL; }
61 void arch_dbg_write(const char *msg) {}
62 void arch_shutdown(void) {}
63 unsigned long arch_page_map_gphys2phys(struct per_cpu *cpu_data,
64                                        unsigned long gphys)
65 { return INVALID_PHYS_ADDR; }
66 void arch_paging_init(void) { }
67
68 const struct paging arm_paging[1];
69
70 void arch_panic_stop(struct per_cpu *cpu_data) {__builtin_unreachable();}
71 void arch_panic_halt(struct per_cpu *cpu_data) {}