ArmPkg/ArmLib: Rationalise ArmReadMidr and cognate functions.
The function ArmReadMidr has been recently added, but that functionality was already present under other names such as Cp15IdCode and ArmMainIdCode. This change removes redundant code and moves the function to the Common library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15276 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
committed by
oliviermartin
parent
992a1f830d
commit
f6c5a29bb9
@@ -46,7 +46,6 @@
|
||||
EXPORT ArmReadCbar
|
||||
EXPORT ArmInvalidateInstructionAndDataTlb
|
||||
EXPORT ArmReadMpidr
|
||||
EXPORT ArmReadMidr
|
||||
EXPORT ArmReadTpidrurw
|
||||
EXPORT ArmWriteTpidrurw
|
||||
EXPORT ArmIsArchTimerImplemented
|
||||
@@ -372,10 +371,6 @@ ArmReadMpidr
|
||||
mrc p15, 0, r0, c0, c0, 5 ; read MPIDR
|
||||
bx lr
|
||||
|
||||
ArmReadMidr
|
||||
mrc p15, 0, r0, c0, c0, 0 ; Read Main ID Register
|
||||
bx lr
|
||||
|
||||
ArmReadTpidrurw
|
||||
mrc p15, 0, r0, c13, c0, 2 ; read TPIDRURW
|
||||
bx lr
|
||||
|
Reference in New Issue
Block a user