2 * Jailhouse, a Linux-based partitioning hypervisor
4 * Copyright (c) Siemens AG, 2013
7 * Jan Kiszka <jan.kiszka@siemens.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.
15 #ifdef CONFIG_UART_OXPCIE952
16 #define UART_BASE 0xe000
18 #define UART_BASE 0x2f8
21 static struct jailhouse_comm_region *comm_region =
22 (struct jailhouse_comm_region *)0x100000UL;
24 void inmate_main(void)
26 unsigned long long start, now;
29 printk_uart_base = UART_BASE;
30 printk("Hello from this tiny cell!\n");
32 start = read_pm_timer(comm_region);
33 for (n = 0; n < 10; n++) {
35 now = read_pm_timer(comm_region);
37 } while (now - start < 1000000000ULL);
38 start += 1000000000ULL;
39 printk("PM Timer: %11lu\n", now);