u-boot-brain/arch
Marc Zyngier f510aeae68 ARM: HYP/non-sec: allow relocation to secure RAM
The current non-sec switching code suffers from one major issue:
it cannot run in secure RAM, as a large part of u-boot still needs
to be run while we're switched to non-secure.

This patch reworks the whole HYP/non-secure strategy by:
- making sure the secure code is the *last* thing u-boot executes
  before entering the payload
- performing an exception return from secure mode directly into
  the payload
- allowing the code to be dynamically relocated to secure RAM
  before switching to non-secure.

This involves quite a bit of horrible code, specially as u-boot
relocation is quite primitive.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
2014-07-28 17:19:09 +02:00
..
arc ARC: enable CONFIG_SYS_BOOT_RAMDISK_HIGH 2014-06-03 16:16:57 +04:00
arm ARM: HYP/non-sec: allow relocation to secure RAM 2014-07-28 17:19:09 +02:00
avr32 avr32: migrate cache functions 2014-06-14 18:06:58 +02:00
blackfin stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
m68k m68k: define __kernel_size_t as unsinged int again 2014-07-22 09:46:50 -04:00
microblaze Makefile: Support include files for .dts files 2014-06-20 11:55:03 -06:00
mips common/board_f: Initialized global data for generic board 2014-05-12 15:20:05 -04:00
nds32 bd_info: remove bi_barudrate member from struct bd_info 2014-05-12 15:19:45 -04:00
nios2 bd_info: remove bi_barudrate member from struct bd_info 2014-05-12 15:19:45 -04:00
openrisc openrisc: fix relocation code 2014-06-05 14:44:56 -04:00
powerpc stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
sandbox sandbox: Remove all drivers before exit 2014-07-23 14:07:24 +01:00
sh sh: unify sh2/sh3/sh4 linker scripts 2014-07-24 12:02:23 +09:00
sparc sparc: merge LEON2 and LEON3 linker scripts 2014-07-22 07:44:24 -04:00
x86 stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00