6 #define __secure __attribute__ ((section ("._secure.text")))
7 #define __secure_data __attribute__ ((section ("._secure.data")))
9 #if defined(CONFIG_ARMV7_SECURE_BASE) || defined(CONFIG_ARMV8_SECURE_BASE)
11 * Warning, horror ahead.
13 * The target code lives in our "secure ram", but u-boot doesn't know
14 * that, and has blindly added reloc_off to every relocation
15 * entry. Gahh. Do the opposite conversion. This hack also prevents
16 * GCC from generating code veeners, which u-boot doesn't relocate at
19 #define secure_ram_addr(_fn) ({ \
20 DECLARE_GLOBAL_DATA_PTR; \
22 typeof(_fn) *__tmp = (__fn - gd->reloc_off); \
26 #define secure_ram_addr(_fn) (_fn)