提交 3076a492 编写于 作者: A Andi Kleen 提交者: Linus Torvalds

[PATCH] x86_64: Report SIGSEGV for IRET faults

tcsh is not happy with the -9999 error code.

Suggested by Ernie Petrides
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 ad90573f
...@@ -553,7 +553,7 @@ iret_label: ...@@ -553,7 +553,7 @@ iret_label:
/* force a signal here? this matches i386 behaviour */ /* force a signal here? this matches i386 behaviour */
/* running with kernel gs */ /* running with kernel gs */
bad_iret: bad_iret:
movq $-9999,%rdi /* better code? */ movq $11,%rdi /* SIGSEGV */
sti sti
jmp do_exit jmp do_exit
.previous .previous
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册