This helps us in future to access configuration.
Signed-off-by: Ralf Ramsauer <[email protected]>
---
hypervisor/arch/arm-common/dbg-write.c | 1 +
hypervisor/arch/arm-common/include/asm/uart.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/hypervisor/arch/arm-common/dbg-write.c
b/hypervisor/arch/arm-common/dbg-write.c
index db842ee7f703..a6211f9032b5 100644
--- a/hypervisor/arch/arm-common/dbg-write.c
+++ b/hypervisor/arch/arm-common/dbg-write.c
@@ -50,6 +50,7 @@ void arch_dbg_write_init(void)
if (dbg_type != JAILHOUSE_DBG_TYPE_UART_ARM)
return;
+ uart.debug_console = &system_config->debug_console;
uart.virt_base = hypervisor_header.debug_console_base;
uart_chip_init(&uart);
arch_dbg_write = arm_uart_write;
diff --git a/hypervisor/arch/arm-common/include/asm/uart.h
b/hypervisor/arch/arm-common/include/asm/uart.h
index b516230c8f7a..17cc5613d478 100644
--- a/hypervisor/arch/arm-common/include/asm/uart.h
+++ b/hypervisor/arch/arm-common/include/asm/uart.h
@@ -18,6 +18,7 @@
/* Defines the bare minimum for debug writes */
struct uart_chip {
void *virt_base;
+ struct jailhouse_debug_console *debug_console;
void (*wait)(struct uart_chip *);
void (*write)(struct uart_chip *, char c);
--
2.10.2
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.