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 48f7a4ff9c..71cf3a544b 100644
--- a/hypervisor/arch/arm-common/dbg-write.c
+++ b/hypervisor/arch/arm-common/dbg-write.c
@@ -49,6 +49,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 b516230c8f..17cc5613d4 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.11.0.rc2

-- 
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.

Reply via email to