Page MenuHomeFreeBSD

D31298.diff
No OneTemporary

D31298.diff

diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c
--- a/sys/amd64/linux/linux_sysvec.c
+++ b/sys/amd64/linux/linux_sysvec.c
@@ -630,9 +630,6 @@
LINUX_CTR4(rt_sendsig, "%p, %d, %p, %u",
catcher, sig, mask, code);
- /* Translate the signal. */
- sig = bsd_to_linux_signal(sig);
-
/* Save user context. */
bzero(&sf, sizeof(sf));
bsd_to_linux_sigset(mask, &sf.sf_sc.uc_sigmask);
@@ -676,6 +673,9 @@
/* Align to 16 bytes. */
sfp = (struct l_rt_sigframe *)((unsigned long)sp & ~0xFul);
+ /* Translate the signal. */
+ sig = bsd_to_linux_signal(sig);
+
/* Build the argument list for the signal handler. */
regs->tf_rdi = sig; /* arg 1 in %rdi */
regs->tf_rax = 0;

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 10:32 PM (8 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16217182
Default Alt Text
D31298.diff (717 B)

Event Timeline