svn commit: r282778 - head/sys/arm/include

Andrew Turner andrew at FreeBSD.org
Mon May 11 19:04:33 UTC 2015


Author: andrew
Date: Mon May 11 19:04:32 2015
New Revision: 282778
URL: https://svnweb.freebsd.org/changeset/base/282778

Log:
  Mark thumb entry points as such when building for thumb, otherwise mark
  them as arm.

Modified:
  head/sys/arm/include/asm.h

Modified: head/sys/arm/include/asm.h
==============================================================================
--- head/sys/arm/include/asm.h	Mon May 11 19:00:02 2015	(r282777)
+++ head/sys/arm/include/asm.h	Mon May 11 19:04:32 2015	(r282778)
@@ -87,7 +87,13 @@
  */
 #define	GLOBAL(x)	.global x
 
-#define	_LEENTRY(x) 	.type x,_ASM_TYPE_FUNCTION; x:
+#ifdef __thumb__
+#define	_FUNC_MODE	.code 16; .thumb_func
+#else
+#define	_FUNC_MODE	.code 32
+#endif
+
+#define	_LEENTRY(x) 	.type x,_ASM_TYPE_FUNCTION; _FUNC_MODE; x:
 #define	_LEEND(x)	/* nothing */
 #define	_EENTRY(x) 	GLOBAL(x); _LEENTRY(x)
 #define	_EEND(x)	_LEEND(x)


More information about the svn-src-all mailing list