diff options
author | Andi Kleen <ak@suse.de> | 2006-03-25 10:31:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 12:14:39 -0500 |
commit | 3076a492a5e8dd624f237886646b35d12193502d (patch) | |
tree | f864c94648364af19430090e8c362f8d1db48899 /arch | |
parent | ad90573f93533ddf1035b0468ed27b4453e50c46 (diff) |
[PATCH] x86_64: Report SIGSEGV for IRET faults
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86_64/kernel/entry.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/entry.S b/arch/x86_64/kernel/entry.S index 7c10e9009d61..8538bfea30e6 100644 --- a/arch/x86_64/kernel/entry.S +++ b/arch/x86_64/kernel/entry.S | |||
@@ -553,7 +553,7 @@ iret_label: | |||
553 | /* force a signal here? this matches i386 behaviour */ | 553 | /* force a signal here? this matches i386 behaviour */ |
554 | /* running with kernel gs */ | 554 | /* running with kernel gs */ |
555 | bad_iret: | 555 | bad_iret: |
556 | movq $-9999,%rdi /* better code? */ | 556 | movq $11,%rdi /* SIGSEGV */ |
557 | sti | 557 | sti |
558 | jmp do_exit | 558 | jmp do_exit |
559 | .previous | 559 | .previous |