Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2017 00:08:38 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320065 - head/sys/dev/psci
Message-ID:  <201706180008.v5I08c1W032586@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Sun Jun 18 00:08:38 2017
New Revision: 320065
URL: https://svnweb.freebsd.org/changeset/base/320065

Log:
  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

Modified:
  head/sys/dev/psci/psci_arm.S

Modified: head/sys/dev/psci/psci_arm.S
==============================================================================
--- head/sys/dev/psci/psci_arm.S	Sat Jun 17 23:34:53 2017	(r320064)
+++ head/sys/dev/psci/psci_arm.S	Sun Jun 18 00:08:38 2017	(r320065)
@@ -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...)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706180008.v5I08c1W032586>