From fa8d7c44170156d3164a156c4ee76f8bc9d0af6f Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Sun, 18 Jun 2017 00:08:38 +0000 Subject: [PATCH] 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. MFC after: 3 weeks Sponsored by: The FreeBSD Foundation --- sys/dev/psci/psci_arm.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/psci/psci_arm.S b/sys/dev/psci/psci_arm.S index 987e3d154e1b..f756aa951844 100644 --- a/sys/dev/psci/psci_arm.S +++ b/sys/dev/psci/psci_arm.S @@ -28,7 +28,8 @@ #include __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...)