[PATCH] Re: [BUG] 2.4.22-rc3 broke x86-64 ia32 emulation?

From: Andi Kleen
Date: Sun Aug 24 2003 - 08:16:02 EST


Mikael Pettersson <mikpe@xxxxxxxxx> writes:

> 2.4.22-rc3 appears to have broken x86-64's ia32-emulation.
> Now, whenever I run a 32-bit binary I get general protection
> and a core dump:

Ah, I know what the problem is. It's a side effect of the
interrupt gate fix. This patch should fix it.

Marcelo, can you please apply it? It fixes the 32bit emulation
on x86-64.

------------------

Fix 32bit system call gate.

--- linux/arch/x86_64/kernel/traps.c-o 2003-06-16 13:03:58.000000000 +0200
+++ linux/arch/x86_64/kernel/traps.c 2003-08-20 10:00:11.000000000 +0200
@@ -837,7 +837,7 @@
set_intr_gate(19,&simd_coprocessor_error);

#ifdef CONFIG_IA32_EMULATION
- set_intr_gate(IA32_SYSCALL_VECTOR, ia32_syscall);
+ set_system_gate(IA32_SYSCALL_VECTOR, ia32_syscall);
#endif

/*


-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/