Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 May 2015 19:04:33 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282778 - head/sys/arm/include
Message-ID:  <201505111904.t4BJ4XKx025466@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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