6 #define __secure __attribute__ ((section ("._secure.text")))
8 #ifdef CONFIG_ARMV7_SECURE_BASE
10 * Warning, horror ahead.
12 * The target code lives in our "secure ram", but u-boot doesn't know
13 * that, and has blindly added reloc_off to every relocation
14 * entry. Gahh. Do the opposite conversion. This hack also prevents
15 * GCC from generating code veeners, which u-boot doesn't relocate at
18 #define secure_ram_addr(_fn) ({ \
19 DECLARE_GLOBAL_DATA_PTR; \
21 typeof(_fn) *__tmp = (__fn - gd->reloc_off); \
25 #define secure_ram_addr(_fn) (_fn)