mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Mikael Pettersson <mikpe@csd.uu.se>
Cc: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org
Subject: [PATCH] Re: [BUG] 2.4.22-rc3 broke x86-64 ia32 emulation?
Date: 24 Aug 2003 15:13:48 +0200	[thread overview]
Message-ID: <p73ad9z5hbn.fsf@oldwotan.suse.de> (raw)
In-Reply-To: <200308241211.h7OCBq7T014859@harpo.it.uu.se.suse.lists.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

       reply	other threads:[~2003-08-24 13:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200308241211.h7OCBq7T014859@harpo.it.uu.se.suse.lists.linux.kernel>
2003-08-24 13:13 ` Andi Kleen [this message]
2003-08-24 16:11 Mikael Pettersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=p73ad9z5hbn.fsf@oldwotan.suse.de \
    --to=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=mikpe@csd.uu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®