lkml.org 
[lkml]   [2003]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Re: [BUG] 2.4.22-rc3 broke x86-64 ia32 emulation?
From
Date
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.034 / U:8.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site