vkernel/vkernel64: fix a bug in cpu_regs.c
authorMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Sat, 16 Jun 2012 11:20:58 +0000 (11:20 +0000)
committerMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Sat, 16 Jun 2012 11:31:41 +0000 (11:31 +0000)
followup to the previous typo which was repeated in the handling
of old FreeBSD style arguments.

sys/platform/vkernel/i386/cpu_regs.c
sys/platform/vkernel64/x86_64/cpu_regs.c

index f93b8f5..c386fdc 100644 (file)
@@ -267,7 +267,7 @@ sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
        else {
                /* Old FreeBSD-style arguments. */
                sf.sf_siginfo = code;
-               sf.sf_addr = regs->tf_err;
+               sf.sf_addr = regs->tf_addr;
                sf.sf_ahu.sf_handler = catcher;
        }
 
index 69f84b8..b0f7048 100644 (file)
@@ -285,7 +285,7 @@ sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
                 * handler (signo, code, [uc], addr)
                 */
                regs->tf_rsi = (register_t)code;        /* argument 2 */
-               regs->tf_rcx = (register_t)regs->tf_err; /* argument 4 */
+               regs->tf_rcx = (register_t)regs->tf_addr; /* argument 4 */
                sf.sf_ahu.sf_handler = catcher;
        }