mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-19 08:38:10 +02:00
AsmMacroIoLib.h and AsmMacroIoLibV8.h are used by the CompilerIntrinsicsLib, which is moving to MdePkg. These functions provide standard definitions for ARM/AARCH64 assembly code, respectively, and so are moved to the arch directories in MdePkg to avoid MdePkg having a dependency on ArmPkg. Now that the files are in Arm/ and AArch64/ directories, the filenames are changed to AsmMacroLib.h as we can distinguish the architecture from the path. AsmMacroIoLib.inc is unused and so is removed. Continuous-integration-options: PatchCheck.ignore-multi-package Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
30 lines
764 B
ArmAsm
30 lines
764 B
ArmAsm
#------------------------------------------------------------------------------
|
|
#
|
|
# Copyright (c) 2016, Linaro Limited. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
#------------------------------------------------------------------------------
|
|
|
|
#include <AsmMacroLib.h>
|
|
|
|
.text
|
|
.align 2
|
|
|
|
GCC_ASM_EXPORT (ArmReadIdMmfr0)
|
|
GCC_ASM_EXPORT (ArmHasMpExtensions)
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
ASM_PFX (ArmHasMpExtensions):
|
|
mrc p15,0,R0,c0,c0,5
|
|
// Get Multiprocessing extension (bit31)
|
|
lsr R0, R0, #31
|
|
bx LR
|
|
|
|
ASM_PFX(ArmReadIdMmfr0):
|
|
mrc p15, 0, r0, c0, c1, 4 @ Read ID_MMFR0 Register
|
|
bx lr
|
|
|
|
ASM_FUNCTION_REMOVE_IF_UNREFERENCED
|