[PATCH] x86_64: Report SIGSEGV for IRET faults
authorAndi Kleen <ak@suse.de>
Sat, 25 Mar 2006 15:31:55 +0000 (16:31 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 17:14:39 +0000 (09:14 -0800)
tcsh is not happy with the -9999 error code.

Suggested by Ernie Petrides

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/entry.S

index 7c10e9009d611173d13fddf90650a9dfe78ec7db..8538bfea30e6b7841904387f45e8c72e49599413 100644 (file)
@@ -553,7 +553,7 @@ iret_label:
        /* force a signal here? this matches i386 behaviour */
        /* running with kernel gs */
 bad_iret:
-       movq $-9999,%rdi        /* better code? */
+       movq $11,%rdi   /* SIGSEGV */
        sti
        jmp do_exit                     
        .previous