Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/vfp Don't try to catch undefined VFP instructio...
details: https://anonhg.NetBSD.org/src/rev/1b18d8128d40
branches: trunk
changeset: 336762:1b18d8128d40
user: matt <matt%NetBSD.org@localhost>
date: Tue Mar 17 22:34:10 2015 +0000
description:
Don't try to catch undefined VFP instructions if we own the the FPU.
Let them raise SIGILL.
diffstat:
sys/arch/arm/vfp/vfp_init.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 271c7c239ec8 -r 1b18d8128d40 sys/arch/arm/vfp/vfp_init.c
--- a/sys/arch/arm/vfp/vfp_init.c Tue Mar 17 22:29:40 2015 +0000
+++ b/sys/arch/arm/vfp/vfp_init.c Tue Mar 17 22:34:10 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfp_init.c,v 1.43 2015/03/17 17:20:55 matt Exp $ */
+/* $NetBSD: vfp_init.c,v 1.44 2015/03/17 22:34:10 matt Exp $ */
/*
* Copyright (c) 2008 ARM Ltd
@@ -402,6 +402,10 @@
if (!vfp_fpscr_handler(address, insn, frame, fault_code))
return 1;
+ /* if we already own the FPU, raise SIGILL */
+ if (curcpu()->ci_pcu_curlwp[PCU_FPU] == curlwp)
+ return 0;
+
/*
* Make sure we own the FP.
*/
Home |
Main Index |
Thread Index |
Old Index