summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/secure.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-06-19 12:38:41 +0800
committerHans de Goede <hdegoede@redhat.com>2016-07-15 15:54:57 +0200
commitafc1f65f504324cd5f87a8cb480bebeb0c61e4e0 (patch)
tree1a98b8e0694ebba50455fb9b9fefc55dba8d4969 /arch/arm/include/asm/secure.h
parent9c4f52b855876862a7a30b63bde4a0d22605c3dc (diff)
downloadu-boot-imx-afc1f65f504324cd5f87a8cb480bebeb0c61e4e0.zip
u-boot-imx-afc1f65f504324cd5f87a8cb480bebeb0c61e4e0.tar.gz
u-boot-imx-afc1f65f504324cd5f87a8cb480bebeb0c61e4e0.tar.bz2
ARM: Move __secure definition to common asm/secure.h
sunxi and i.mx7 both define the __secure modifier to put functions in the secure section. Move this to a common place. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/include/asm/secure.h')
-rw-r--r--arch/arm/include/asm/secure.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/secure.h b/arch/arm/include/asm/secure.h
index effdb18..6d9088b 100644
--- a/arch/arm/include/asm/secure.h
+++ b/arch/arm/include/asm/secure.h
@@ -3,6 +3,8 @@
#include <config.h>
+#define __secure __attribute__ ((section ("._secure.text")))
+
#ifdef CONFIG_ARMV7_SECURE_BASE
/*
* Warning, horror ahead.