#include <devices/generic.h>
#include <devices/ide.h>
#include <devices/ram_cd.h>
+#include <devices/ram_hd.h>
#include <devices/bochs_debug.h>
#include <devices/os_debug.h>
#include <devices/apic.h>
static int setup_devices(struct guest_info * info, struct v3_vm_config * config_ptr) {
struct vm_device * ide = NULL;
- struct vm_device * ram_cd = NULL;
+ //struct vm_device * ram_cd = NULL;
+ struct vm_device * ram_hd = NULL;
struct vm_device * pci = v3_create_pci();
struct vm_device * nvram = v3_create_nvram();
//struct vm_device * timer = v3_create_timer();
if (use_ramdisk) {
PrintDebug("Creating Ramdisk\n");
- ram_cd = v3_create_ram_cd(ide, 0, 0,
+ //ram_cd = v3_create_ram_cd(ide, 0, 0,
+ // (addr_t)(config_ptr->ramdisk),
+ // config_ptr->ramdisk_size);
+ ram_hd = v3_create_ram_hd(ide, 0, 0,
(addr_t)(config_ptr->ramdisk),
config_ptr->ramdisk_size);
}
v3_attach_device(info, ide);
if (use_ramdisk) {
- v3_attach_device(info, ram_cd);
+ // v3_attach_device(info, ram_cd);
+ v3_attach_device(info, ram_hd);
}
if (use_generic) {