[PATCH] fix TRAP_BAD_SYSCALL_EXITS on i386

From: Andy Whitcroft
Date: Fri Jul 02 2004 - 10:08:11 EST


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@xxxxxxxxxxxx>

---
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
-
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/