linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] Re: [BUG] 2.4.22-rc3 broke x86-64 ia32 emulation?
@ 2003-08-24 16:11 Mikael Pettersson
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Pettersson @ 2003-08-24 16:11 UTC (permalink / raw)
  To: ak; +Cc: linux-kernel, marcelo

On 24 Aug 2003 15:13:48 +0200, Andi Kleen wrote:
>Mikael Pettersson <mikpe@csd.uu.se> 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

Yes that fixed it. Thanks!

/Mikael

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Re: [BUG] 2.4.22-rc3 broke x86-64 ia32 emulation?
       [not found] <200308241211.h7OCBq7T014859@harpo.it.uu.se.suse.lists.linux.kernel>
@ 2003-08-24 13:13 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2003-08-24 13:13 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: marcelo, linux-kernel

Mikael Pettersson <mikpe@csd.uu.se> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-24 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-24 16:11 [PATCH] Re: [BUG] 2.4.22-rc3 broke x86-64 ia32 emulation? Mikael Pettersson
     [not found] <200308241211.h7OCBq7T014859@harpo.it.uu.se.suse.lists.linux.kernel>
2003-08-24 13:13 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).