Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

secure.h

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Marc Zyngier's avatar
      f510aeae
      ARM: HYP/non-sec: allow relocation to secure RAM · f510aeae
      Marc Zyngier authored
      
      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: default avatarMarc Zyngier <marc.zyngier@arm.com>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
      f510aeae
      History
      ARM: HYP/non-sec: allow relocation to secure RAM
      Marc Zyngier authored
      
      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: default avatarMarc Zyngier <marc.zyngier@arm.com>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>