diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-12-15 15:02:07 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-12-15 15:02:07 +0000 |
commit | 6d2449c1f5fb7ff18faaa08a4ac6b38709ea1e30 (patch) | |
tree | e73560d1eecc6c0b4e1d1cac7b15ad9019c10dbc /ArmPkg | |
parent | 19d9bf7725b9c0255e77e6656f2762d12887f70a (diff) | |
download | edk2-6d2449c1f5fb7ff18faaa08a4ac6b38709ea1e30.tar.gz edk2-6d2449c1f5fb7ff18faaa08a4ac6b38709ea1e30.tar.bz2 edk2-6d2449c1f5fb7ff18faaa08a4ac6b38709ea1e30.zip |
ArmPkg/ArmV7Lib: add CLANG alternative for FPEXC access
The open coded access to co-processor #10 to set FPEXC is not supported
by the CLANG assembler, but the architecturally correct VMSR instruction
is not supported by older binutils. So keep the former unless __clang__
is defined.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19282 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Library/ArmLib/ArmV7/ArmV7Support.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ArmPkg/Library/ArmLib/ArmV7/ArmV7Support.S b/ArmPkg/Library/ArmLib/ArmV7/ArmV7Support.S index 7de1b11ef8..50c760f335 100644 --- a/ArmPkg/Library/ArmLib/ArmV7/ArmV7Support.S +++ b/ArmPkg/Library/ArmLib/ArmV7/ArmV7Support.S @@ -298,7 +298,11 @@ ASM_PFX(ArmEnableVFP): isb
# Set EN bit in FPEXC. The Advanced SIMD and VFP extensions are enabled and operate normally.
mov r0, #0x40000000
+#ifndef __clang__
mcr p10,#0x7,r0,c8,c0,#0
+#else
+ vmsr fpexc, r0
+#endif
bx lr
ASM_PFX(ArmCallWFI):
|