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 debug print syntax errors
Jack Lange [Wed, 28 Jan 2009 23:36:36 +0000 (17:36 -0600)]
palacios/src/devices/8259a.c
palacios/src/devices/keyboard.c
palacios/src/devices/nvram.c

index f13dc1d..4b9649b 100644 (file)
@@ -242,8 +242,8 @@ static int pic_get_intr_number(void * private_data) {
   int i = 0;
   int irq = -1;
 
-  PrintDebug("8259 PIC: getnum: master_irr: 0x%x master_imr: 0x%x\n", i, state->master_irr, state->master_imr);
-  PrintDebug("8259 PIC: getnum: slave_irr: 0x%x slave_imr: 0x%x\n", i, state->slave_irr, state->slave_imr);
+  PrintDebug("8259 PIC: getnum: master_irr: 0x%x master_imr: 0x%x\n", state->master_irr, state->master_imr);
+  PrintDebug("8259 PIC: getnum: slave_irr: 0x%x slave_imr: 0x%x\n", state->slave_irr, state->slave_imr);
 
   for (i = 0; i < 16; i++) {
     if (i <= 7) {
index 8f25c0c..afcfc25 100644 (file)
@@ -1066,7 +1066,7 @@ static int keyboard_write_output(ushort_t port,
       case 0xff: // reset
        PushToOutputQueue(dev, 0xfa, OVERWRITE, COMMAND, KEYBOARD); // ack
        state->state = RESET;
-       PrintDebug("keyboard: reset complete and acked\n", data);
+       PrintDebug("keyboard: reset complete and acked\n");
        break;
       case 0xf5: // disable scanning
       case 0xf4: // enable scanning
@@ -1074,7 +1074,7 @@ static int keyboard_write_output(ushort_t port,
        PushToOutputQueue(dev, 0xfa, OVERWRITE, COMMAND, KEYBOARD);
        // should do something here... PAD
        state->state = NORMAL;
-       PrintDebug("keyboard: %s scanning done and acked\n",data==0xf5 ? "disable" : "enable", data);
+       PrintDebug("keyboard: %s scanning done and acked\n",data==0xf5 ? "disable" : "enable");
        break;
       case 0xfe: // resend
       case 0xfd: // set key type make
index 59e2003..5d433bb 100644 (file)
@@ -652,7 +652,7 @@ struct vm_device * v3_create_nvram() {
 
   nvram_state = (struct nvram_internal *)V3_Malloc(sizeof(struct nvram_internal) + 1000);
 
-  PrintDebug("nvram: internal at %x\n", nvram_state);
+  PrintDebug("nvram: internal at %p\n", (void *)nvram_state);
 
   struct vm_device * device = v3_create_device("NVRAM", &dev_ops, nvram_state);