* [PATCH] fix TRAP_BAD_SYSCALL_EXITS on i386
@ 2004-07-02 15:05 Andy Whitcroft
0 siblings, 0 replies; only message in thread
From: Andy Whitcroft @ 2004-07-02 15:05 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm, apw
Seems that we are not using the right accessor for the preempt
count in entry.S on i386 for the TRAP_BAD_SYSCALL_EXITS checks.
Patch below should fix this. Complied and booted on -mm5.
-apw
=== 8<===
We are not using the right offset name, nor the right address when checking
for a non-zero preempt count. Move to TI_preempt_count(%ebp).
Revision: $Rev: 356 $
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
---
entry.S | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -X /home/apw/brief/lib/vdiff.excl -rupN reference/arch/i386/kernel/entry.S current/arch/i386/kernel/entry.S
--- reference/arch/i386/kernel/entry.S 2004-07-02 14:00:51.000000000 +0100
+++ current/arch/i386/kernel/entry.S 2004-07-02 16:18:07.000000000 +0100
@@ -314,7 +314,7 @@ restore_all:
testl $(VM_MASK | 3), %eax
jz resume_kernelX # returning to kernel or vm86-space
- cmpl $0,TI_PRE_COUNT(%ebx) # non-zero preempt_count ?
+ cmpl $0,TI_preempt_count(%ebp) # non-zero preempt_count ?
jz resume_kernelX
int $3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-02 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-02 15:05 [PATCH] fix TRAP_BAD_SYSCALL_EXITS on i386 Andy Whitcroft
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®