Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3076a492 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[PATCH] x86_64: Report SIGSEGV for IRET faults



tcsh is not happy with the -9999 error code.

Suggested by Ernie Petrides

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ad90573f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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