Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/matt-nb8-mediatek]: src/sys/arch/arm/vfp Make the VFP is disabled after ...
details: https://anonhg.NetBSD.org/src/rev/4dc4bbb07d65
branches: matt-nb8-mediatek
changeset: 851106:4dc4bbb07d65
user: matt <matt%NetBSD.org@localhost>
date: Wed Dec 13 00:57:58 2017 +0000
description:
Make the VFP is disabled after disabling it.
diffstat:
sys/arch/arm/vfp/vfp_init.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 3d2d272bb001 -r 4dc4bbb07d65 sys/arch/arm/vfp/vfp_init.c
--- a/sys/arch/arm/vfp/vfp_init.c Mon Nov 06 10:40:42 2017 +0000
+++ b/sys/arch/arm/vfp/vfp_init.c Wed Dec 13 00:57:58 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfp_init.c,v 1.53.2.1 2017/10/24 09:14:59 snj Exp $ */
+/* $NetBSD: vfp_init.c,v 1.53.2.1.2.1 2017/12/13 00:57:58 matt Exp $ */
/*
* Copyright (c) 2008 ARM Ltd
@@ -642,6 +642,7 @@
struct pcb * const pcb = lwp_getpcb(l);
pcu_discard(&arm_vfp_ops, l, true);
+ KASSERT((pcb->pcb_vfp.vfp_fpexc & VFP_FPEXC_EN) == 0);
pcb->pcb_vfp.vfp_fpscr = mcp->__fpu.__vfpregs.__vfp_fpscr;
memcpy(pcb->pcb_vfp.vfp_regs, mcp->__fpu.__vfpregs.__vfp_fstmx,
sizeof(mcp->__fpu.__vfpregs.__vfp_fstmx));
Home |
Main Index |
Thread Index |
Old Index