X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2F8259a.c;h=6609a5c4a4b6061287233dc023a0c5de300065fe;hp=08a8231af2e084d9436d1e540cd73c76f00e55d4;hb=022f63d320c2837822dc7f6be84f860a01f02d7c;hpb=b58fe2254858e3ecc94be5d86f2a93f2cfe0a0d5 diff --git a/palacios/src/devices/8259a.c b/palacios/src/devices/8259a.c index 08a8231..6609a5c 100644 --- a/palacios/src/devices/8259a.c +++ b/palacios/src/devices/8259a.c @@ -595,7 +595,7 @@ static int write_master_port1(struct guest_info * core, ushort_t port, void * sr if (IS_OCW2(cw)) { // handle the EOI here struct ocw2 * cw2 = (struct ocw2*)&cw; - int eoi_irq; + int eoi_irq=-1; PrintDebug(core->vm_info, core, "8259 PIC: Master: Handling OCW2 = %x (wr_Master1)\n", cw); @@ -750,7 +750,7 @@ static int write_slave_port1(struct guest_info * core, ushort_t port, void * src state->slave_state = ICW2; } else if (state->slave_state == READY) { if (IS_OCW2(cw)) { - int eoi_irq; + int eoi_irq = -1; // handle the EOI here struct ocw2 * cw2 = (struct ocw2 *)&cw;