2 * Jailhouse, a Linux-based partitioning hypervisor
4 * Copyright (c) ARM Limited, 2014
7 * Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
13 #include <jailhouse/entry.h>
14 #include <jailhouse/printk.h>
15 #include <jailhouse/processor.h>
16 #include <asm/debug.h>
17 #include <asm/platform.h>
19 static struct uart_chip uart;
21 void arch_dbg_write_init(void)
23 /* FIXME: parse a device tree */
24 uart.baudrate = 115200;
25 uart.fifo_enabled = true;
26 uart.virt_base = hypervisor_header.debug_uart_base;
28 uart_chip_init(&uart);
31 void arch_dbg_write(const char *msg)
44 if (panic_in_progress && panic_cpu != phys_processor_id())