[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>
This commit is contained in:
Andi Kleen 2006-03-25 16:31:55 +01:00 committed by Linus Torvalds
parent ad90573f93
commit 3076a492a5
1 changed files with 1 additions and 1 deletions

View 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