mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdePkg: Move AsmMacroIoLib*.h from ArmPkg
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>
This commit is contained in:
parent
656665d289
commit
734e71f428
@ -5,7 +5,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
#if !defined(__clang__)
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
#include <Library/ArmLib.h>
|
||||
|
||||
// For the moment we assume this will run in SVC mode on ARMv7
|
||||
|
@ -7,7 +7,7 @@
|
||||
.text
|
||||
.align 3
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
#include <IndustryStandard/ArmStdSmc.h>
|
||||
#include <Library/ArmLib.h>
|
||||
|
||||
|
@ -1,33 +0,0 @@
|
||||
;%HEADER%
|
||||
;/** @file
|
||||
; Macros to work around lack of Apple support for LDR register, =expr
|
||||
;
|
||||
; Copyright (c) 2009, Apple Inc. All rights reserved.<BR>
|
||||
; Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
|
||||
;
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
;**/
|
||||
|
||||
|
||||
MACRO
|
||||
adrll $Reg, $Symbol
|
||||
add $Reg, pc, #-8
|
||||
RELOC R_ARM_ALU_PC_G0_NC, $Symbol
|
||||
add $Reg, $Reg, #-4
|
||||
RELOC R_ARM_ALU_PC_G1_NC, $Symbol
|
||||
add $Reg, $Reg, #0
|
||||
RELOC R_ARM_ALU_PC_G2, $Symbol
|
||||
MEND
|
||||
|
||||
MACRO
|
||||
ldrl $Reg, $Symbol
|
||||
add $Reg, pc, #-8
|
||||
RELOC R_ARM_ALU_PC_G0_NC, $Symbol
|
||||
add $Reg, $Reg, #-4
|
||||
RELOC R_ARM_ALU_PC_G1_NC, $Symbol
|
||||
ldr $Reg, [$Reg, #0]
|
||||
RELOC R_ARM_LDR_PC_G2, $Symbol
|
||||
MEND
|
||||
|
||||
END
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include <AArch64/AArch64.h>
|
||||
#include <Library/PcdLib.h>
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
#include <Protocol/DebugSupport.h> // for exception type definitions
|
||||
|
||||
/*
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(ArmCallHvc)
|
||||
// Push x0 on the stack - The stack must always be quad-word aligned
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.arch_extension virt
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(ArmReadCntFrq)
|
||||
mrs x0, cntfrq_el0 // Read CNTFRQ
|
||||
|
@ -10,7 +10,7 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AArch64/AArch64.h>
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.set CTRL_M_BIT, (1 << 0)
|
||||
.set CTRL_A_BIT, (1 << 1)
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.set DAIF_RD_FIQ_BIT, (1 << 6)
|
||||
.set DAIF_RD_IRQ_BIT, (1 << 7)
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.set MPIDR_U_BIT, (30)
|
||||
.set MPIDR_U_MASK, (1 << MPIDR_U_BIT)
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(ArmReadMidr)
|
||||
mrc p15,0,R0,c0,c0,0
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(ArmIsMpCore)
|
||||
mrc p15,0,R0,c0,c0,5
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(ArmReadCntFrq)
|
||||
mrc p15, 0, r0, c14, c0, 0 @ Read CNTFRQ
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.set DC_ON, (0x1<<2)
|
||||
.set IC_ON, (0x1<<12)
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.set CTRL_M_BIT, (1 << 0)
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.text
|
||||
.align 2
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
/** Monitor call.
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
/** Monitor call.
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(ArmCallSmc)
|
||||
// Push x0 on the stack - The stack must always be quad-word aligned
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.arch_extension sec
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.text
|
||||
.align 3
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__ashlti3)
|
||||
# return if shift is 0
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__ashldi3)
|
||||
cmp r2, #31
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__ashrdi3)
|
||||
cmp r2, #31
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__clzsi2)
|
||||
@ frame_needed = 1, uses_anonymous_args = 0
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__ctzsi2)
|
||||
uxth r3, r0
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__divdi3)
|
||||
@ args = 0, pretend = 0, frame = 0
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__divsi3)
|
||||
eor r3, r0, r0, asr #31
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
#
|
||||
#UINT64
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
//
|
||||
// A pair of (unsigned) long longs is returned in {{r0, r1}, {r2, r3}},
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
#
|
||||
#VOID
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
#VOID
|
||||
#EFIAPI
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__lshrdi3)
|
||||
cmp r2, #31
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
# VOID
|
||||
# EFIAPI
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__moddi3)
|
||||
stmfd sp!, {r4, r5, r7, lr}
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__modsi3)
|
||||
stmfd sp!, {r4, r5, r7, lr}
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__muldi3)
|
||||
stmfd sp!, {r4, r5, r6, r7, lr}
|
||||
|
@ -7,7 +7,7 @@
|
||||
#**/
|
||||
#
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.syntax unified
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#**/
|
||||
#
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.syntax unified
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#**/
|
||||
#
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.syntax unified
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#**/
|
||||
#
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.syntax unified
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__ucmpdi2)
|
||||
stmfd sp!, {r4, r5, r8, lr}
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__udivdi3)
|
||||
stmfd sp!, {r7, lr}
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.syntax unified
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.syntax unified
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__umoddi3)
|
||||
stmfd sp!, {r7, lr}
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(__umodsi3)
|
||||
stmfd sp!, {r4, r5, r7, lr}
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
#
|
||||
#UINT32
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
#
|
||||
#UINT32
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(GccSemihostCall)
|
||||
hlt #0xf000
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
/*
|
||||
Semihosting operation request mechanism
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
#include <Library/ArmLib.h>
|
||||
|
||||
ASM_FUNC(ArmPlatformPeiBootAction)
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
#include <Library/ArmLib.h>
|
||||
|
||||
ASM_FUNC(ArmPlatformPeiBootAction)
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(_ModuleEntryPoint)
|
||||
// Do early platform specific actions
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
#include <Arm/AArch32.h>
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
#include <AArch64/AArch64.h>
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
#include <Base.h>
|
||||
#include <AutoGen.h>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
#=======================================================================================
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
#include <AArch64/AArch64.h>
|
||||
|
||||
// Setup EL1 while in EL1
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(_ModuleEntryPoint)
|
||||
// Do early platform specific actions
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
#/**
|
||||
# This allows the caller to switch the stack and return
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
#include <Base.h>
|
||||
#include <AutoGen.h>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(_ModuleEntryPoint)
|
||||
// Do early platform specific actions
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
#/**
|
||||
# This allows the caller to switch the stack and return
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
.macro mov_i, reg:req, imm:req
|
||||
movz \reg, :abs_g1:\imm
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLibV8.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(_ModuleEntryPoint)
|
||||
//
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
#include <AsmMacroLib.h>
|
||||
|
||||
ASM_FUNC(_ModuleEntryPoint)
|
||||
// Do early platform specific actions
|
||||
|
Loading…
x
Reference in New Issue
Block a user