Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


fixed bug in the interrupt handler
Jack Lange [Wed, 30 Apr 2008 20:20:15 +0000 (20:20 +0000)]
palacios/src/geekos/vmm_stubs.c

index 22ae6ef..b2b66be 100644 (file)
@@ -53,8 +53,15 @@ struct guest_info * irq_map[256];
 
 static void pic_intr_handler(struct Interrupt_State * state) {
   Begin_IRQ(state);
-
-  irq_map[state->intNum]->vm_ops.raise_irq(irq_map[state->intNum], state->intNum, state->errorCode);
+  struct guest_info * info =   irq_map[state->intNum - 32];
+
+  if (info) {
+    info->vm_ops.raise_irq(irq_map[state->intNum], state->intNum, state->errorCode);
+  } else {
+    SerialPrint("Interrupt handler error: NULL pointer found, no action taken\n");
+    End_IRQ(state);
+    return;
+  }
 
   // End_IRQ(state);
 }