]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/ArmSmcPsciResetSystemLib/AArch64/Reset.asm
NetworkPkg/HttpDxe: fix 32-bit truncation in HTTPS download
[mirror_edk2.git] / ArmPkg / Library / ArmSmcPsciResetSystemLib / AArch64 / Reset.asm
1 ;/** @file
2 ; ResetSystemLib implementation using PSCI calls
3 ;
4 ; Copyright (c) 2018, Linaro Ltd. All rights reserved.<BR>
5 ;
6 ; SPDX-License-Identifier: BSD-2-Clause-Patent
7 ;
8 ;**/
9
10 AREA Reset, CODE, READONLY
11
12 EXPORT DisableMmuAndReenterPei
13 IMPORT ArmDisableMmu
14
15 DisableMmuAndReenterPei
16 stp x29, x30, [sp, #-16]!
17 mov x29, sp
18
19 bl ArmDisableMmu
20
21 ; no memory accesses after MMU and caches have been disabled
22
23 movl x0, FixedPcdGet64 (PcdFvBaseAddress)
24 blr x0
25
26 ; never returns
27 nop
28
29 END