Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/booke apply changes to this file as well, a...
details: https://anonhg.NetBSD.org/src/rev/6d18a52ffae1
branches: trunk
changeset: 352129:6d18a52ffae1
user: chs <chs%NetBSD.org@localhost>
date: Fri Mar 17 23:43:43 2017 +0000
description:
apply changes to this file as well, as part of:
allow pcu_save() and pcu_discard() to be called on other threads,
ptrace needs to use it that way.
diffstat:
sys/arch/powerpc/booke/spe.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diffs (43 lines):
diff -r 20ce0c188210 -r 6d18a52ffae1 sys/arch/powerpc/booke/spe.c
--- a/sys/arch/powerpc/booke/spe.c Fri Mar 17 20:42:42 2017 +0000
+++ b/sys/arch/powerpc/booke/spe.c Fri Mar 17 23:43:43 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spe.c,v 1.9 2017/03/16 16:13:20 chs Exp $ */
+/* $NetBSD: spe.c,v 1.10 2017/03/17 23:43:43 chs Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spe.c,v 1.9 2017/03/16 16:13:20 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spe.c,v 1.10 2017/03/17 23:43:43 chs Exp $");
#include "opt_altivec.h"
@@ -149,9 +149,7 @@
struct pcb * const pcb = lwp_getpcb(l);
const union __vr *vr = mcp->__vrf.__vrs;
- KASSERT(l == curlwp);
-
- vec_save();
+ vec_save(l);
/* grab the accumulator */
pcb->pcb_vr.vreg[8][0] = vr->__vr32[2];
@@ -175,12 +173,10 @@
{
struct pcb * const pcb = lwp_getpcb(l);
- KASSERT(l == curlwp);
-
if (!vec_used_p(l))
return false;
- vec_save();
+ vec_save(l);
mcp->__gregs[_REG_MSR] |= PSL_SPV;
Home |
Main Index |
Thread Index |
Old Index