#ifndef _MINIOS_OS_H_
#define _MINIOS_OS_H_
-#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
-#define __builtin_expect(x, expected_value) (x)
-#endif
+#define smp_processor_id() 0
#define unlikely(x) __builtin_expect((x),0)
#define likely(x) __builtin_expect((x),1)
-#define smp_processor_id() 0
+#include <mini-os/hypervisor.h>
+
+#ifndef __RUMP_KERNEL__
+
+#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
+#define __builtin_expect(x, expected_value) (x)
+#endif
#ifndef __ASSEMBLY__
#include <mini-os/types.h>
-#include <mini-os/hypervisor.h>
#include <mini-os/kernel.h>
#endif
#include <mini-os/machine/os.h>
+#endif /* !__RUMP_KERNEL__ */
+
#endif /* _MINIOS_OS_H_ */
#ifndef __MINIOS_ASM_SPINLOCK_H
#define __MINIOS_ASM_SPINLOCK_H
+#ifndef __RUMP_KERNEL__
#include <mini-os/lib.h>
+#endif
/*
* Your basic SMP spinlocks, allowing only a single CPU anywhere
#endif
#endif
+#ifndef __RUMP_KERNEL__
+
#define L1_FRAME 1
#define L2_FRAME 2
#define L3_FRAME 3
pgentry_t *need_pgt(unsigned long addr);
int mfn_is_ram(unsigned long mfn);
+#endif /* !__RUMP_KERNEL__ */
+
#endif /* _ARCH_MM_H_ */