]>
Commit | Line | Data |
---|---|---|
6556224e AB |
1 | /** @file |
2 | ResetSystemLib implementation using PSCI calls | |
3 | ||
4 | Copyright (c) 2018, Linaro Ltd. All rights reserved.<BR> | |
5 | ||
4059386c | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent |
6556224e AB |
7 | |
8 | **/ | |
9 | ||
10 | #include <AsmMacroIoLib.h> | |
11 | ||
12 | ASM_FUNC(DisableMmuAndReenterPei) | |
13 | push {lr} | |
14 | ||
15 | bl ArmDisableMmu | |
16 | ||
17 | // no memory accesses after MMU and caches have been disabled | |
18 | ||
19 | MOV32 (r0, FixedPcdGet64 (PcdFvBaseAddress)) | |
20 | blx r0 | |
21 | ||
22 | // never returns | |
23 | nop |