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 Use the mrc form of the vmrs rX, mvfrX inst...
details: https://anonhg.NetBSD.org/src/rev/221156a87c85
branches: trunk
changeset: 784692:221156a87c85
user: matt <matt%NetBSD.org@localhost>
date: Tue Feb 05 23:23:34 2013 +0000
description:
Use the mrc form of the vmrs rX, mvfrX instruction to shut up gas.
diffstat:
sys/arch/arm/vfp/vfp_init.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r c99cf4d3ec34 -r 221156a87c85 sys/arch/arm/vfp/vfp_init.c
--- a/sys/arch/arm/vfp/vfp_init.c Tue Feb 05 22:03:16 2013 +0000
+++ b/sys/arch/arm/vfp/vfp_init.c Tue Feb 05 23:23:34 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfp_init.c,v 1.18 2013/01/31 22:35:25 matt Exp $ */
+/* $NetBSD: vfp_init.c,v 1.19 2013/02/05 23:23:34 matt Exp $ */
/*
* Copyright (c) 2008 ARM Ltd
@@ -387,8 +387,8 @@
}
cpu_fpu_present = 1;
- __asm("fmrx %0, mvfr0" : "=r"(cpu_media_and_vfp_features[0]));
- __asm("fmrx %0, mvfr1" : "=r"(cpu_media_and_vfp_features[1]));
+ __asm("mrc p10,7,%0,c7,c0,0" : "=r"(cpu_media_and_vfp_features[0]));
+ __asm("mrc p10,7,%0,c6,c0,0" : "=r"(cpu_media_and_vfp_features[1]));
if (fpsid != 0) {
aprint_normal("vfp%d at %s: %s\n",
device_unit(curcpu()->ci_dev), device_xname(curcpu()->ci_dev),
Home |
Main Index |
Thread Index |
Old Index