Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/dev Pass the address of the array, this fi...



details:   https://anonhg.NetBSD.org/src/rev/17d5d7702ea2
branches:  trunk
changeset: 362238:17d5d7702ea2
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Fri Jun 01 07:26:15 2018 +0000

description:
Pass the address of the array, this fixes issues with i386 compilation

diffstat:

 sys/arch/usermode/dev/cpu.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r a3a9b8868495 -r 17d5d7702ea2 sys/arch/usermode/dev/cpu.c
--- a/sys/arch/usermode/dev/cpu.c       Fri Jun 01 07:22:33 2018 +0000
+++ b/sys/arch/usermode/dev/cpu.c       Fri Jun 01 07:26:15 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.79 2018/05/29 09:25:01 reinoud Exp $ */
+/* $NetBSD: cpu.c,v 1.80 2018/06/01 07:26:15 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
 #include "opt_hz.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.79 2018/05/29 09:25:01 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.80 2018/06/01 07:26:15 reinoud Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -353,9 +353,9 @@
        thunk_printf_debug("cpu_setmcontext\n");
 #endif
        if ((flags & _UC_CPU) != 0)
-               memcpy(&ucp->uc_mcontext.__gregs, mcp->__gregs, sizeof(__gregset_t));
+               memcpy(&ucp->uc_mcontext.__gregs, &mcp->__gregs, sizeof(__gregset_t));
        if ((flags & _UC_FPU) != 0)
-               memcpy(&ucp->uc_mcontext.__fpregs, mcp->__fpregs, sizeof(__fpregset_t));
+               memcpy(&ucp->uc_mcontext.__fpregs, &mcp->__fpregs, sizeof(__fpregset_t));
        if ((flags & _UC_TLSBASE) != 0)
                lwp_setprivate(l, (void *) (uintptr_t) mcp->_mc_tlsbase);
 



Home | Main Index | Thread Index | Old Index