summaryrefslogtreecommitdiff
path: root/sys/arch/usermode/dev
diff options
context:
space:
mode:
authorreinoud <reinoud@NetBSD.org>2018-05-29 09:25:01 +0000
committerreinoud <reinoud@NetBSD.org>2018-05-29 09:25:01 +0000
commit00afe984e7b652436703ded51c66eda890b4bc35 (patch)
tree5b99c021435070abb17ebbadd0f25e7b63cb0bb6 /sys/arch/usermode/dev
parente82c364fa442bc52cb5bf081ca8845030ece4242 (diff)
Only report the things we've passed in the mcontext and leave out flags that
are not reported in the mcontext anyway!
Diffstat (limited to 'sys/arch/usermode/dev')
-rw-r--r--sys/arch/usermode/dev/cpu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/usermode/dev/cpu.c b/sys/arch/usermode/dev/cpu.c
index 8cfc4baada5..ec3027930d5 100644
--- a/sys/arch/usermode/dev/cpu.c
+++ b/sys/arch/usermode/dev/cpu.c
@@ -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>
@@ -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 @@ cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags)
#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 @@ cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp)
*/
/* XXX NO CHECKING! XXX */
#ifdef CPU_DEBUG
- thunk_printf("cpu_mcontext_validate\n");
+ thunk_printf_debug("cpu_mcontext_validate\n");
#endif
return 0;
}