mirror of https://github.com/acidanthera/audk.git
24 lines
421 B
ArmAsm
24 lines
421 B
ArmAsm
/** @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
|