mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com> --HG-- rename : patches/linux-2.6.16.13/blktap-aio-16_03_06.patch => patches/linux-2.6.16.29/blktap-aio-16_03_06.patch rename : patches/linux-2.6.16.13/device_bind.patch => patches/linux-2.6.16.29/device_bind.patch rename : patches/linux-2.6.16.13/fix-hz-suspend.patch => patches/linux-2.6.16.29/fix-hz-suspend.patch rename : patches/linux-2.6.16.13/fix-ide-cd-pio-mode.patch => patches/linux-2.6.16.29/fix-ide-cd-pio-mode.patch rename : patches/linux-2.6.16.13/i386-mach-io-check-nmi.patch => patches/linux-2.6.16.29/i386-mach-io-check-nmi.patch rename : patches/linux-2.6.16.13/ipv6-no-autoconf.patch => patches/linux-2.6.16.29/ipv6-no-autoconf.patch rename : patches/linux-2.6.16.13/net-csum.patch => patches/linux-2.6.16.29/net-csum.patch rename : patches/linux-2.6.16.13/net-gso-0-base.patch => patches/linux-2.6.16.29/net-gso-0-base.patch rename : patches/linux-2.6.16.13/net-gso-1-check-dodgy.patch => patches/linux-2.6.16.29/net-gso-1-check-dodgy.patch rename : patches/linux-2.6.16.13/net-gso-2-checksum-fix.patch => patches/linux-2.6.16.29/net-gso-2-checksum-fix.patch rename : patches/linux-2.6.16.13/net-gso-3-fix-errorcheck.patch => patches/linux-2.6.16.29/net-gso-3-fix-errorcheck.patch rename : patches/linux-2.6.16.13/net-gso-4-kill-warnon.patch => patches/linux-2.6.16.29/net-gso-4-kill-warnon.patch rename : patches/linux-2.6.16.13/pmd-shared.patch => patches/linux-2.6.16.29/pmd-shared.patch rename : patches/linux-2.6.16.13/rcu_needs_cpu.patch => patches/linux-2.6.16.29/rcu_needs_cpu.patch rename : patches/linux-2.6.16.13/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch => patches/linux-2.6.16.29/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch rename : patches/linux-2.6.16.13/series => patches/linux-2.6.16.29/series rename : patches/linux-2.6.16.13/smp-alts.patch => patches/linux-2.6.16.29/smp-alts.patch rename : patches/linux-2.6.16.13/tpm_plugin_2.6.17.patch => patches/linux-2.6.16.29/tpm_plugin_2.6.17.patch rename : patches/linux-2.6.16.13/x86-elfnote-as-preprocessor-macro.patch => patches/linux-2.6.16.29/x86-elfnote-as-preprocessor-macro.patch rename : patches/linux-2.6.16.13/x86-increase-interrupt-vector-range.patch => patches/linux-2.6.16.29/x86-increase-interrupt-vector-range.patch rename : patches/linux-2.6.16.13/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.16.29/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch rename : patches/linux-2.6.16.13/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.16.29/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch rename : patches/linux-2.6.16.13/xen-hotplug.patch => patches/linux-2.6.16.29/xen-hotplug.patch rename : patches/linux-2.6.16.13/xenoprof-generic.patch => patches/linux-2.6.16.29/xenoprof-generic.patch
90 lines
3.2 KiB
Diff
90 lines
3.2 KiB
Diff
diff -pruN ../orig-linux-2.6.16.29/arch/i386/kernel/entry.S ./arch/i386/kernel/entry.S
|
|
--- ../orig-linux-2.6.16.29/arch/i386/kernel/entry.S 2006-09-19 14:05:44.000000000 +0100
|
|
+++ ./arch/i386/kernel/entry.S 2006-09-19 14:05:56.000000000 +0100
|
|
@@ -406,7 +406,7 @@ vector=0
|
|
ENTRY(irq_entries_start)
|
|
.rept NR_IRQS
|
|
ALIGN
|
|
-1: pushl $vector-256
|
|
+1: pushl $~(vector)
|
|
jmp common_interrupt
|
|
.data
|
|
.long 1b
|
|
@@ -423,7 +423,7 @@ common_interrupt:
|
|
|
|
#define BUILD_INTERRUPT(name, nr) \
|
|
ENTRY(name) \
|
|
- pushl $nr-256; \
|
|
+ pushl $~(nr); \
|
|
SAVE_ALL \
|
|
movl %esp,%eax; \
|
|
call smp_/**/name; \
|
|
diff -pruN ../orig-linux-2.6.16.29/arch/i386/kernel/irq.c ./arch/i386/kernel/irq.c
|
|
--- ../orig-linux-2.6.16.29/arch/i386/kernel/irq.c 2006-09-12 19:02:10.000000000 +0100
|
|
+++ ./arch/i386/kernel/irq.c 2006-09-19 14:05:56.000000000 +0100
|
|
@@ -53,8 +53,8 @@ static union irq_ctx *softirq_ctx[NR_CPU
|
|
*/
|
|
fastcall unsigned int do_IRQ(struct pt_regs *regs)
|
|
{
|
|
- /* high bits used in ret_from_ code */
|
|
- int irq = regs->orig_eax & 0xff;
|
|
+ /* high bit used in ret_from_ code */
|
|
+ int irq = ~regs->orig_eax;
|
|
#ifdef CONFIG_4KSTACKS
|
|
union irq_ctx *curctx, *irqctx;
|
|
u32 *isp;
|
|
diff -pruN ../orig-linux-2.6.16.29/arch/x86_64/kernel/entry.S ./arch/x86_64/kernel/entry.S
|
|
--- ../orig-linux-2.6.16.29/arch/x86_64/kernel/entry.S 2006-09-12 19:02:10.000000000 +0100
|
|
+++ ./arch/x86_64/kernel/entry.S 2006-09-19 14:05:56.000000000 +0100
|
|
@@ -596,7 +596,7 @@ retint_kernel:
|
|
*/
|
|
.macro apicinterrupt num,func
|
|
INTR_FRAME
|
|
- pushq $\num-256
|
|
+ pushq $~(\num)
|
|
CFI_ADJUST_CFA_OFFSET 8
|
|
interrupt \func
|
|
jmp ret_from_intr
|
|
diff -pruN ../orig-linux-2.6.16.29/arch/x86_64/kernel/irq.c ./arch/x86_64/kernel/irq.c
|
|
--- ../orig-linux-2.6.16.29/arch/x86_64/kernel/irq.c 2006-09-12 19:02:10.000000000 +0100
|
|
+++ ./arch/x86_64/kernel/irq.c 2006-09-19 14:05:56.000000000 +0100
|
|
@@ -96,8 +96,8 @@ skip:
|
|
*/
|
|
asmlinkage unsigned int do_IRQ(struct pt_regs *regs)
|
|
{
|
|
- /* high bits used in ret_from_ code */
|
|
- unsigned irq = regs->orig_rax & 0xff;
|
|
+ /* high bit used in ret_from_ code */
|
|
+ unsigned irq = ~regs->orig_rax;
|
|
|
|
exit_idle();
|
|
irq_enter();
|
|
diff -pruN ../orig-linux-2.6.16.29/arch/x86_64/kernel/smp.c ./arch/x86_64/kernel/smp.c
|
|
--- ../orig-linux-2.6.16.29/arch/x86_64/kernel/smp.c 2006-09-12 19:02:10.000000000 +0100
|
|
+++ ./arch/x86_64/kernel/smp.c 2006-09-19 14:05:56.000000000 +0100
|
|
@@ -135,10 +135,10 @@ asmlinkage void smp_invalidate_interrupt
|
|
|
|
cpu = smp_processor_id();
|
|
/*
|
|
- * orig_rax contains the interrupt vector - 256.
|
|
+ * orig_rax contains the negated interrupt vector.
|
|
* Use that to determine where the sender put the data.
|
|
*/
|
|
- sender = regs->orig_rax + 256 - INVALIDATE_TLB_VECTOR_START;
|
|
+ sender = ~regs->orig_rax - INVALIDATE_TLB_VECTOR_START;
|
|
f = &per_cpu(flush_state, sender);
|
|
|
|
if (!cpu_isset(cpu, f->flush_cpumask))
|
|
diff -pruN ../orig-linux-2.6.16.29/include/asm-x86_64/hw_irq.h ./include/asm-x86_64/hw_irq.h
|
|
--- ../orig-linux-2.6.16.29/include/asm-x86_64/hw_irq.h 2006-09-12 19:02:10.000000000 +0100
|
|
+++ ./include/asm-x86_64/hw_irq.h 2006-09-19 14:05:56.000000000 +0100
|
|
@@ -127,7 +127,7 @@ asmlinkage void IRQ_NAME(nr); \
|
|
__asm__( \
|
|
"\n.p2align\n" \
|
|
"IRQ" #nr "_interrupt:\n\t" \
|
|
- "push $" #nr "-256 ; " \
|
|
+ "push $~(" #nr ") ; " \
|
|
"jmp common_interrupt");
|
|
|
|
#if defined(CONFIG_X86_IO_APIC)
|