summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2021-01-04 21:03:30 +0100
committerJérôme Forissier <jerome@forissier.org>2021-01-05 12:33:29 +0100
commit9bbdacba1c6a79152da83b5529d99827fce579af (patch)
treec9d4c3660595a449fa6bafebf12d22e6f722d13d /core
parent4c69b1f137d643f739fafd8652e7e35148d22fc9 (diff)
qemu_v8: configure secure interrupts
Configures GIC and enable reception of interrupts from the secure uart. This enables testing of secure interrupts on the QEMU v8 platform by typing in the secure log. Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core')
-rw-r--r--core/arch/arm/plat-vexpress/platform_config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/arch/arm/plat-vexpress/platform_config.h b/core/arch/arm/plat-vexpress/platform_config.h
index 8821a1f6..206885c0 100644
--- a/core/arch/arm/plat-vexpress/platform_config.h
+++ b/core/arch/arm/plat-vexpress/platform_config.h
@@ -67,10 +67,14 @@
#elif defined(PLATFORM_FLAVOR_qemu_armv8a)
+#define GIC_BASE 0x08000000
#define UART0_BASE 0x09000000
#define UART1_BASE 0x09040000
+#define IT_UART1 40
+
#define CONSOLE_UART_BASE UART1_BASE
+#define IT_CONSOLE_UART IT_UART1
#else
#error "Unknown platform flavor"
@@ -120,6 +124,9 @@
#elif defined(PLATFORM_FLAVOR_qemu_armv8a)
+#define GICD_OFFSET 0
+#define GICC_OFFSET 0x10000
+
#else
#error "Unknown platform flavor"
#endif