X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fvm.c;h=910dbd6ee8f58e700f2afea8cb7589caa4770628;hp=160be77e4c4890d259a90abb105050e8527224f7;hb=028d9b71d4a4e6d49a22ad5904b6dd2f8c596a26;hpb=90b8236597004a37a9d5acb33a1b1f987fe9070c diff --git a/palacios/src/geekos/vm.c b/palacios/src/geekos/vm.c index 160be77..910dbd6 100644 --- a/palacios/src/geekos/vm.c +++ b/palacios/src/geekos/vm.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -314,18 +315,27 @@ int RunVMM(struct Boot_Info * bootInfo) { hook_io_port(&(vm_info.io_map), 0x403, &IO_Read, &IO_Write_to_Serial, NULL); { + 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 * 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); + + 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); + // Important that this be attached last! + //attach_device(&(vm_info), generic); + PrintDebugDevMgr(&(vm_info.dev_mgr)); }