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.


Added alignment of memory as a top-level VM parameter to ease use of 2MB
[palacios.releases.git] / palacios / src / devices / 8259a.c
index fb0ab43..498ab76 100644 (file)
@@ -277,13 +277,16 @@ static int pic_get_intr_number(struct guest_info * info, void * private_data) {
        }
     }
 
+#if 1
     if ((i == 15) || (i == 6)) { 
        DumpPICState(state);
     }
+#endif
   
     if (i == 16) { 
        return -1;
     } else {
+       PrintDebug("8259 PIC: get num is returning %d\n",irq);
        return irq;
     }
 }
@@ -312,7 +315,10 @@ static int pic_begin_irq(struct guest_info * info, void * private_data, int irq)
            if (!(state->master_elcr & (0x1 << irq))) {
                state->master_irr &= ~(0x1 << irq);
            }
+       } else {
+          PrintDebug("8259 PIC: (master) Ignoring begin_irq for %d since I don't own it\n",irq);
        }
+
     } else {
        // This should always be true: See pic_get_intr_number
        if (((state->slave_irr & ~(state->slave_imr)) >> (irq - 8)) & 0x01) {
@@ -321,7 +327,10 @@ static int pic_begin_irq(struct guest_info * info, void * private_data, int irq)
           if (!(state->slave_elcr & (0x1 << (irq - 8)))) {
               state->slave_irr &= ~(0x1 << (irq - 8));
           }
-       }
+       } else {
+          PrintDebug("8259 PIC: (slave) Ignoring begin_irq for %d since I don't own it\n",irq);
+       }
+
     }
 
     return 0;