# Use LWKINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option
LWKINCLUDE := -Iinclude \
- -I../palacios/include \
$(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
-include include/lwk/autoconf.h
CFLAGS += -g
endif
+ifdef CONFIG_V3VEE
+CFLAGS += -I../palacios/include
+endif
+
+
include $(srctree)/arch/$(ARCH)/Makefile
# arch Makefile may override CC so keep this after arch Makefile is included
--- /dev/null
+/* Copyright (c) 2007,2008 Sandia National Laboratories */
+
+#ifndef _LWK_PALACIOS_H_
+#define _LWK_PALACIOS_H_
+
+#ifdef CONFIG_V3VEE
+
+#include <palacios/vmm.h>
+
+extern uint8_t rombios_start, rombios_end;
+extern uint8_t vgabios_start, vgabios_end;
+
+#endif // CONFIG_V3VEE
+
+#endif
#include <lwk/task.h>
#include <lwk/sched.h>
#include <lwk/timer.h>
-
-#include <palacios/vmm.h>
+#include <lwk/palacios.h>
/**
* Pristine copy of the LWK boot command line.
panic("Failed to boot CPU %d.\n", cpu);
}
+#ifdef CONFIG_V3VEE
{
struct v3_os_hooks os_hooks;
struct v3_ctrl_ops v3_ops;
memset(&v3_ops, 0, sizeof(struct v3_ctrl_ops));
memset(&vm_config, 0, sizeof(struct v3_vm_config));
+ printk( KERN_INFO "Calling Init_V3\n" );
Init_V3(&os_hooks, &v3_ops);
+ printk( KERN_INFO "Rombios: %p @ %d\n",
+ &rombios_start,
+ &rombios_end - &rombios_start,
+ );
+
+ printk( KERN_INFO "VGA Bios: %p @ %d\n",
+ &vgabios_start,
+ &vgabios_end - &vgabios_start
+ );
}
+#endif
/*
* Start up user-space...