]> Git Repo - J-linux.git/commitdiff
[PATCH] x86_64: Report SIGSEGV for IRET faults
authorAndi Kleen <[email protected]>
Sat, 25 Mar 2006 15:31:55 +0000 (16:31 +0100)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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       
This page took 0.059708 seconds and 4 git commands to generate.