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 Only report the things we've passed in...



details:   https://anonhg.NetBSD.org/src/rev/4457e72244c6
branches:  trunk
changeset: 319428:4457e72244c6
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Tue May 29 09:25:01 2018 +0000

description:
Only report the things we've passed in the mcontext and leave out flags that
are not reported in the mcontext anyway!

diffstat:

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

diffs (39 lines):

diff -r 9b65e74fe040 -r 4457e72244c6 sys/arch/usermode/dev/cpu.c
--- a/sys/arch/usermode/dev/cpu.c       Tue May 29 09:10:39 2018 +0000
+++ b/sys/arch/usermode/dev/cpu.c       Tue May 29 09:25:01 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.78 2018/05/29 07:35:40 reinoud Exp $ */
+/* $NetBSD: cpu.c,v 1.79 2018/05/29 09:25:01 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.78 2018/05/29 07:35:40 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.79 2018/05/29 09:25:01 reinoud Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -322,9 +322,9 @@
 #endif
        memcpy(mcp, &ucp->uc_mcontext, sizeof(mcontext_t));
 
-       /* XXX be overzealous and provide all */
+       /* report we have the CPU FPU and TLSBASE registers */
        mcp->_mc_tlsbase = (uintptr_t) l->l_private;
-       *flags = _UC_CPU | _UC_STACK | _UC_SIGMASK | _UC_FPU | _UC_TLSBASE;
+       *flags = _UC_CPU | _UC_FPU | _UC_TLSBASE;
 
        return;
 }
@@ -338,7 +338,7 @@
         */
        /* XXX NO CHECKING! XXX */
 #ifdef CPU_DEBUG
-       thunk_printf("cpu_mcontext_validate\n");
+       thunk_printf_debug("cpu_mcontext_validate\n");
 #endif
        return 0;
 }



Home | Main Index | Thread Index | Old Index