]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
inmates: Avoid jailhouse/types.h
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 2 Jan 2016 18:39:02 +0000 (19:39 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 8 Jan 2016 18:34:38 +0000 (19:34 +0100)
Add missing bool to inmate_common.h and use inmate.h instead of pulling
the hypervisor types header.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
inmates/lib/arm/printk.c
inmates/lib/inmate_common.h
inmates/lib/x86/inmate.h

index 239731a589e531099cf4cc5d6638e13169c4fb6e..874dada3716b65cda5579788207f88c20c7c529f 100644 (file)
  * the COPYING file in the top-level directory.
  */
 
-#include <jailhouse/types.h>
+#include <inmate.h>
 #include <asm/debug.h>
 #include <stdarg.h>
-#include <inmate.h>
 
 static struct uart_chip chip;
 
index 89aa756b49c3fb0bf18ff9fe3c48be72f00bfbf6..30d0d396c132b3bb17720bf8d84288b85fea02e8 100644 (file)
@@ -29,6 +29,8 @@ typedef u32 __u32;
 typedef s64 __s64;
 typedef u64 __u64;
 
+typedef enum { true = 1, false = 0 } bool;
+
 #include <jailhouse/hypercall.h>
 
 #define comm_region    ((struct jailhouse_comm_region *)COMM_REGION_BASE)
index 8fb6451a11da93343b9ed378a9d62b023359f3ae..2c22de06d8753ad24dbdd029742cbefeaf9ac9a5 100644 (file)
@@ -74,8 +74,6 @@ typedef unsigned int u32;
 typedef signed long long s64;
 typedef unsigned long long u64;
 
-typedef enum { true=1, false=0 } bool;
-
 static inline void cpu_relax(void)
 {
        asm volatile("rep; nop" : : : "memory");