diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-07-30 23:34:09 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-07-30 23:34:09 -0400 |
commit | 727e6e932d76f05f8691a32bbeabd1061b051a3b (patch) | |
tree | 07572434f36144336e4d4d05f68de840f45db96b /arch/x86_64 | |
parent | bdf242eeb0f69567fe43eba93889d80ecacbfe94 (diff) | |
parent | 889371f61fd5bb914d0331268f12432590cf7e85 (diff) |
Merge ../linux-2.6/
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/mpparse.c | 17 | ||||
-rw-r--r-- | arch/x86_64/lib/csum-copy.S | 2 |
2 files changed, 16 insertions, 3 deletions
diff --git a/arch/x86_64/kernel/mpparse.c b/arch/x86_64/kernel/mpparse.c index 08abf9f5b159..79c362d03e2e 100644 --- a/arch/x86_64/kernel/mpparse.c +++ b/arch/x86_64/kernel/mpparse.c | |||
@@ -970,8 +970,21 @@ int mp_register_gsi(u32 gsi, int edge_level, int active_high_low) | |||
970 | * due to unused I/O APIC pins. | 970 | * due to unused I/O APIC pins. |
971 | */ | 971 | */ |
972 | int irq = gsi; | 972 | int irq = gsi; |
973 | gsi = pci_irq++; | 973 | if (gsi < MAX_GSI_NUM) { |
974 | gsi_to_irq[irq] = gsi; | 974 | if (gsi > 15) |
975 | gsi = pci_irq++; | ||
976 | #ifdef CONFIG_ACPI_BUS | ||
977 | /* | ||
978 | * Don't assign IRQ used by ACPI SCI | ||
979 | */ | ||
980 | if (gsi == acpi_fadt.sci_int) | ||
981 | gsi = pci_irq++; | ||
982 | #endif | ||
983 | gsi_to_irq[irq] = gsi; | ||
984 | } else { | ||
985 | printk(KERN_ERR "GSI %u is too high\n", gsi); | ||
986 | return gsi; | ||
987 | } | ||
975 | } | 988 | } |
976 | 989 | ||
977 | io_apic_set_pci_routing(ioapic, ioapic_pin, gsi, | 990 | io_apic_set_pci_routing(ioapic, ioapic_pin, gsi, |
diff --git a/arch/x86_64/lib/csum-copy.S b/arch/x86_64/lib/csum-copy.S index 01808ec37836..72fd55ee896e 100644 --- a/arch/x86_64/lib/csum-copy.S +++ b/arch/x86_64/lib/csum-copy.S | |||
@@ -188,8 +188,8 @@ csum_partial_copy_generic: | |||
188 | source | 188 | source |
189 | movw (%rdi),%bx | 189 | movw (%rdi),%bx |
190 | adcl %ebx,%eax | 190 | adcl %ebx,%eax |
191 | dest | ||
192 | decl %ecx | 191 | decl %ecx |
192 | dest | ||
193 | movw %bx,(%rsi) | 193 | movw %bx,(%rsi) |
194 | leaq 2(%rdi),%rdi | 194 | leaq 2(%rdi),%rdi |
195 | leaq 2(%rsi),%rsi | 195 | leaq 2(%rsi),%rsi |