[PATCH 38/50] config: gic inmate cell config for foundation-v8

4 مرّات مشاهدة
التخطي إلى أول رسالة غير مقروءة

Jan Kiszka

غير مقروءة،
18‏/10‏/2016، 4:09:27 ص18‏/10‏/2016
إلى jailho...@googlegroups.com،Antonios Motakis،Claudio Fontana،Dmitry Voytik،Marc Zyngier،Mark Rutland
From: Antonios Motakis <antonios...@huawei.com>

Add a cell configuration file for the gic inmate demo, for the
foundation-v8 model.

Signed-off-by: Antonios Motakis <antonios...@huawei.com>
[Jan: adjust include]
Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
configs/foundation-v8-gic-demo.c | 55 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 configs/foundation-v8-gic-demo.c

diff --git a/configs/foundation-v8-gic-demo.c b/configs/foundation-v8-gic-demo.c
new file mode 100644
index 0000000..2984c61
--- /dev/null
+++ b/configs/foundation-v8-gic-demo.c
@@ -0,0 +1,55 @@
+/*
+ * Jailhouse, a Linux-based partitioning hypervisor
+ *
+ * Copyright (c) ARM Limited, 2014
+ *
+ * Authors:
+ * Jean-Philippe Brucker <jean-phili...@arm.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See
+ * the COPYING file in the top-level directory.
+ */
+
+#include <jailhouse/types.h>
+#include <jailhouse/cell-config.h>
+
+#define ARRAY_SIZE(a) sizeof(a) / sizeof(a[0])
+
+struct {
+ struct jailhouse_cell_desc cell;
+ __u64 cpus[1];
+ struct jailhouse_memory mem_regions[2];
+} __attribute__((packed)) config = {
+ .cell = {
+ .signature = JAILHOUSE_CELL_DESC_SIGNATURE,
+ .name = "gic-demo",
+ .flags = JAILHOUSE_CELL_PASSIVE_COMMREG,
+
+ .cpu_set_size = sizeof(config.cpus),
+ .num_memory_regions = ARRAY_SIZE(config.mem_regions),
+ .num_irqchips = 0,
+ .pio_bitmap_size = 0,
+ .num_pci_devices = 0,
+ },
+
+ .cpus = {
+ 0x2,
+ },
+
+ .mem_regions = {
+ /* UART 1 */ {
+ .phys_start = 0x1c0a0000,
+ .virt_start = 0x1c090000,
+ .size = 0x10000,
+ .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
+ JAILHOUSE_MEM_IO,
+ },
+ /* RAM */ {
+ .phys_start = 0xfbfe0000,
+ .virt_start = 0,
+ .size = 0x00010000,
+ .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
+ JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE,
+ },
+ },
+};
--
2.1.4

الرد على الكل
رد على الكاتب
إعادة توجيه
0 رسالة جديدة