struct vm_device * nvram = create_nvram();
//struct vm_device * timer = create_timer();
struct vm_device * pic = create_pic();
- //struct vm_device * keyboard = create_keyboard();
+ struct vm_device * keyboard = create_keyboard();
struct vm_device * pit = create_pit();
//generic_port_range_type range = {0,1024} ; // hook first 1024 ports if not already hooked
- //struct vm_device * generic = create_generic(&range,1,NULL,0,NULL,0);
+ //struct vm_device * generic = create_generic(&range, 1, NULL, 0, NULL, 0);
attach_device(&(vm_info), nvram);
//attach_device(&(vm_info), timer);
attach_device(&(vm_info), pic);
attach_device(&(vm_info), pit);
- //attach_device(&(vm_info), keyboard);
+ attach_device(&(vm_info), keyboard);
// Important that this be attached last!
//attach_device(&(vm_info), generic);
//hook_irq(&vm_info, 1);
// give floppy controller to vm
- hook_irq(&vm_info, 6);
+ //hook_irq(&vm_info, 6);
// primary ide
- hook_irq(&vm_info, 14);
+ //hook_irq(&vm_info, 14);
// secondary ide
- hook_irq(&vm_info, 15);
+ //hook_irq(&vm_info, 15);
vm_info.rip = 0xfff0;