summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Library/ArmSmcPsciResetSystemLib/Arm/Reset.S
blob: c0c5bcf19723ceb82b11b5afad728cc06146be96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** @file
  ResetSystemLib implementation using PSCI calls

  Copyright (c) 2018, Linaro Ltd. All rights reserved.<BR>

  SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#include <AsmMacroIoLib.h>

ASM_FUNC(DisableMmuAndReenterPei)
  push  {lr}

  bl    ArmDisableMmu

  // no memory accesses after MMU and caches have been disabled

  MOV32 (r0, FixedPcdGet64 (PcdFvBaseAddress))
  blx   r0

  // never returns
  nop