Changeset 17968 in vbox for trunk/src/VBox/Devices/PC/DevAPIC.cpp
- Timestamp:
- Mar 16, 2009 7:02:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r13832 r17968 352 352 DECLINLINE(void) cpuSetInterrupt(APICDeviceInfo* dev, APICState *s) 353 353 { 354 Log2(("apic: setting interrupt flag\n")); 354 355 dev->CTX_SUFF(pApicHlp)->pfnSetInterruptFF(dev->CTX_SUFF(pDevIns), 355 356 getCpuFromLapic(dev, s)); … … 358 359 DECLINLINE(void) cpuClearInterrupt(APICDeviceInfo* dev, APICState *s) 359 360 { 361 Log2(("apic: clear interrupt flag\n")); 360 362 dev->CTX_SUFF(pApicHlp)->pfnClearInterruptFF(dev->CTX_SUFF(pDevIns), 361 363 getCpuFromLapic(dev, s)); … … 1183 1185 if (!(s->spurious_vec & APIC_SV_ENABLE)) { 1184 1186 Log(("apic_get_interrupt: returns -1 (APIC_SV_ENABLE)\n")); 1185 return -1; 1187 intno = -1; 1188 goto done; 1186 1189 } 1187 1190 … … 1190 1193 if (intno < 0) { 1191 1194 Log(("apic_get_interrupt: returns -1 (irr)\n")); 1192 return -1; 1195 intno = -1; 1196 goto done; 1193 1197 } 1194 1198 if (s->tpr && (uint32_t)intno <= s->tpr) { 1195 1199 Log(("apic_get_interrupt: returns %d (sp)\n", s->spurious_vec & 0xff)); 1196 return s->spurious_vec & 0xff; 1200 intno = s->spurious_vec & 0xff; 1201 goto done; 1197 1202 } 1198 1203 reset_bit(s->irr, intno); … … 1200 1205 apic_update_irq(dev, s); 1201 1206 LogFlow(("apic_get_interrupt: returns %d\n", intno)); 1207 done: 1202 1208 APIC_UNLOCK(dev); 1203 1209 return intno;
Note:
See TracChangeset
for help on using the changeset viewer.