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 <inmates/inmate.h>
16 * To ease the debugging, we can send a spurious hypercall, which should return
17 * -ENOSYS, but appear in the hypervisor stats for this cell.
19 static void heartbeat(void)
22 ".arch_extension virt\n"
25 : : "r" (0xbea7) : "r0");
28 void inmate_main(void)
30 unsigned int i = 0, j;
32 * The cell config can set up a mapping to access UARTx instead of UART0
35 for (j = 0; j < 100000000; j++);
36 printk("Hello %d from cell!\n", i);
40 /* lr should be 0, so a return will go back to the reset vector */