This removes the various Mmio ASM macros that are not used anywhere in the code, and removes some variants of LoadConstant... () that are not used anywhere either. Note that these MmioXxx() implementations are unrelated to the C versions defined in MdePkg. These are strictly intended for use in assembler, and no such uses remain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
30 lines
822 B
PHP
30 lines
822 B
PHP
;%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>
|
|
;
|
|
; This program and the accompanying materials
|
|
; are licensed and made available under the terms and conditions of the BSD License
|
|
; which accompanies this distribution. The full text of the license may be found at
|
|
; http://opensource.org/licenses/bsd-license.php
|
|
;
|
|
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
;
|
|
;**/
|
|
|
|
|
|
MACRO
|
|
LoadConstantMacro $Data
|
|
ldr r0, =($Data)
|
|
MEND
|
|
|
|
MACRO
|
|
LoadConstantToRegMacro $Data, $Reg
|
|
ldr $Reg, =($Data)
|
|
MEND
|
|
|
|
END
|