]>
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 | 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 |