/[qemu]/trunk/hw/apic.c
ViewVC logotype

Diff of /trunk/hw/apic.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5890 by aurel32, Sat Dec 6 10:46:35 2008 UTC revision 6081 by aliguori, Wed Dec 17 23:28:44 2008 UTC
# Line 945  void ioapic_set_irq(void *opaque, int ve Line 945  void ioapic_set_irq(void *opaque, int ve
945  {  {
946      IOAPICState *s = opaque;      IOAPICState *s = opaque;
947    
948        /* ISA IRQs map to GSI 1-1 except for IRQ0 which maps
949         * to GSI 2.  GSI maps to ioapic 1-1.  This is not
950         * the cleanest way of doing it but it should work. */
951    
952        if (vector == 0)
953            vector = 2;
954    
955      if (vector >= 0 && vector < IOAPIC_NUM_PINS) {      if (vector >= 0 && vector < IOAPIC_NUM_PINS) {
956          uint32_t mask = 1 << vector;          uint32_t mask = 1 << vector;
957          uint64_t entry = s->ioredtbl[vector];          uint64_t entry = s->ioredtbl[vector];

Legend:
Removed from v.5890  
changed lines
  Added in v.6081

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5