#ifndef _JAILHOUSE_ASM_BITOPS_H
#define _JAILHOUSE_ASM_BITOPS_H
-#include <asm/types.h>
+#include <jailhouse/types.h>
static inline __attribute__((always_inline)) void
clear_bit(int nr, volatile unsigned long *addr)
#ifndef _JAILHOUSE_ASM_CELL_H
#define _JAILHOUSE_ASM_CELL_H
-#include <asm/types.h>
+#include <jailhouse/types.h>
#include <asm/paging.h>
#include <jailhouse/cell-config.h>
#ifndef _JAILHOUSE_ASM_PAGING_H
#define _JAILHOUSE_ASM_PAGING_H
-#include <asm/types.h>
+#include <jailhouse/types.h>
#include <asm/processor.h>
#define PAGE_SIZE 4096
#ifndef _JAILHOUSE_ASM_PERCPU_H
#define _JAILHOUSE_ASM_PERCPU_H
-#include <asm/types.h>
+#include <jailhouse/types.h>
#include <asm/paging.h>
#define NUM_ENTRY_REGS 6
#ifndef _JAILHOUSE_ASM_TYPES_H
#define _JAILHOUSE_ASM_TYPES_H
-#define NULL ((void *)0)
-
#define BITS_PER_LONG 32
#ifndef __ASSEMBLY__
typedef s64 __s64;
typedef u64 __u64;
-typedef enum { true = 1, false = 0 } bool;
-
-struct cpu_set {
- unsigned long max_cpu_id;
- /* Note: The bitmap is supposed to be extended by embedding this
- * struct into a larger buffer. */
- unsigned long bitmap[1];
-};
-
#endif /* !__ASSEMBLY__ */
#endif /* !_JAILHOUSE_ASM_TYPES_H */
#ifndef _JAILHOUSE_ASM_BITOPS_H
#define _JAILHOUSE_ASM_BITOPS_H
-#include <asm/types.h>
+#include <jailhouse/types.h>
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
/* Technically wrong, but this avoids compilation errors on some gcc
* the COPYING file in the top-level directory.
*/
-#include <asm/types.h>
+#include <jailhouse/types.h>
static inline void outb(u8 v, u16 port)
{
#ifndef _JAILHOUSE_ASM_PAGING_H
#define _JAILHOUSE_ASM_PAGING_H
-#include <asm/types.h>
+#include <jailhouse/types.h>
#include <asm/processor.h>
#define PAGE_SIZE 4096
#ifndef _JAILHOUSE_ASM_PCI_H
#define _JAILHOUSE_ASM_PCI_H
+#include <jailhouse/types.h>
#include <asm/percpu.h>
-#include <asm/types.h>
/* --- PCI configuration ports --- */
#define PCI_REG_ADDR_PORT 0xcf8
#ifndef _JAILHOUSE_ASM_PERCPU_H
#define _JAILHOUSE_ASM_PERCPU_H
-#include <asm/types.h>
+#include <jailhouse/types.h>
#include <asm/paging.h>
#include <asm/processor.h>
#ifndef _JAILHOUSE_ASM_PROCESSOR_H
#define _JAILHOUSE_ASM_PROCESSOR_H
-#include <asm/types.h>
+#include <jailhouse/types.h>
#define X86_FEATURE_VMX (1 << 5)
#define X86_FEATURE_GBPAGES (1 << 26)
#ifndef _JAILHOUSE_ASM_TYPES_H
#define _JAILHOUSE_ASM_TYPES_H
-#define NULL ((void *)0)
-
#ifndef BITS_PER_LONG
#define BITS_PER_LONG 64
#endif /* ! BITS_PER_LONG */
typedef s64 __s64;
typedef u64 __u64;
-typedef enum { true = 1, false = 0 } bool;
-
-struct cpu_set {
- unsigned long max_cpu_id;
- /* Note: The bitmap is supposed to be extended by embedding this
- * struct into a larger buffer. */
- unsigned long bitmap[1];
-};
-
#endif /* !__ASSEMBLY__ */
#endif /* !_JAILHOUSE_ASM_TYPES_H */
#define _JAILHOUSE_ENTRY_H
#include <jailhouse/header.h>
-#include <asm/types.h>
+#include <jailhouse/types.h>
#include <jailhouse/cell-config.h>
#define _JAILHOUSE_PAGING_H
#include <jailhouse/entry.h>
-#include <asm/types.h>
+#include <jailhouse/types.h>
#include <asm/paging.h>
/**
* the COPYING file in the top-level directory.
*/
-#include <asm/types.h>
+#include <jailhouse/types.h>
extern volatile unsigned long panic_in_progress;
extern unsigned int panic_cpu;
--- /dev/null
+/*
+ * Jailhouse, a Linux-based partitioning hypervisor
+ *
+ * Copyright (c) Siemens AG, 2013, 2014
+ *
+ * Authors:
+ * Jan Kiszka <jan.kiszka@siemens.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See
+ * the COPYING file in the top-level directory.
+ */
+
+#ifndef _JAILHOUSE_TYPES_H
+#define _JAILHOUSE_TYPES_H
+
+#include <asm/types.h>
+
+#define NULL ((void *)0)
+
+#ifndef __ASSEMBLY__
+
+typedef enum { true = 1, false = 0 } bool;
+
+/** Describes a CPU set. */
+struct cpu_set {
+ /** Maximum CPU ID expressible with this set. */
+ unsigned long max_cpu_id;
+ /** Bitmap of CPUs in the set.
+ * @note Typically, the bitmap is extended by embedding this structure
+ * into a larger buffer. */
+ unsigned long bitmap[1];
+};
+
+#endif /* !__ASSEMBLY__ */
+
+#endif /* !_JAILHOUSE_JAILHOUSE_TYPES_H */
*/
#include <jailhouse/string.h>
-#include <asm/types.h>
+#include <jailhouse/types.h>
void *memset(void *s, int c, unsigned long n)
{