summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2017-07-16 19:16:02 +0000
committeremaste <emaste@FreeBSD.org>2017-07-16 19:16:02 +0000
commit091cf7ec482d2b8f1b4e2838916b8d356909e70f (patch)
tree942d2c12245ebd53fb75b28a57a4d9cc2fcd3be2
parent3d2ff7cba688456d04f59ab8c2b69d5a694ab535 (diff)
downloadFreeBSD-src-091cf7ec482d2b8f1b4e2838916b8d356909e70f.zip
FreeBSD-src-091cf7ec482d2b8f1b4e2838916b8d356909e70f.tar.gz
MFC r320065: arm: add .arch_extension sec for smc instruction
Clang 4.0 accepts the smc instruction with or without specifying .arch_extension sec, but Clang 5.0 produces an error without it. Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/dev/psci/psci_arm.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/psci/psci_arm.S b/sys/dev/psci/psci_arm.S
index 987e3d1..f756aa9 100644
--- a/sys/dev/psci/psci_arm.S
+++ b/sys/dev/psci/psci_arm.S
@@ -28,7 +28,8 @@
#include <machine/asm.h>
__FBSDID("$FreeBSD$");
-.arch_extension virt /* For hvc */
+.arch_extension sec /* For smc */
+.arch_extension virt /* For hvc */
/*
* int psci_hvc_despatch(register_t psci_fnid, register_t...)
OpenPOWER on IntegriCloud