diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-06-19 04:38:41 (GMT) |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-07-15 13:54:57 (GMT) |
commit | afc1f65f504324cd5f87a8cb480bebeb0c61e4e0 (patch) | |
tree | 1a98b8e0694ebba50455fb9b9fefc55dba8d4969 /arch/arm/cpu/armv7/mx7/psci-mx7.c | |
parent | 9c4f52b855876862a7a30b63bde4a0d22605c3dc (diff) | |
download | u-boot-fsl-qoriq-afc1f65f504324cd5f87a8cb480bebeb0c61e4e0.tar.xz |
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/cpu/armv7/mx7/psci-mx7.c')
-rw-r--r-- | arch/arm/cpu/armv7/mx7/psci-mx7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/mx7/psci-mx7.c b/arch/arm/cpu/armv7/mx7/psci-mx7.c index 9a33047..502552d 100644 --- a/arch/arm/cpu/armv7/mx7/psci-mx7.c +++ b/arch/arm/cpu/armv7/mx7/psci-mx7.c @@ -1,9 +1,9 @@ #include <asm/io.h> #include <asm/psci.h> +#include <asm/secure.h> #include <asm/arch/imx-regs.h> #include <common.h> -#define __secure __attribute__((section("._secure.text"))) #define GPC_CPU_PGC_SW_PDN_REQ 0xfc #define GPC_CPU_PGC_SW_PUP_REQ 0xf0 |