EXPORT ArmEnableInterrupts
EXPORT ArmDisableInterrupts
EXPORT ArmGetInterruptState
+ EXPORT ArmEnableFiq
+ EXPORT ArmDisableFiq
+ EXPORT ArmGetFiqState
EXPORT ArmInvalidateTlb
EXPORT ArmSetTranslationTableBaseAddress
EXPORT ArmGetTranslationTableBaseAddress
EXPORT CPSRMaskInsert
EXPORT CPSRRead
EXPORT ReadCCSIDR
-
+ EXPORT ReadCLIDR
+
AREA ArmLibSupport, CODE, READONLY
Cp15IdCode
moveq R0,#1
movne R0,#0
bx LR
+
+ArmEnableFiq
+ CPSIE f
+ bx LR
+
+ArmDisableFiq
+ CPSID f
+ bx LR
+
+ArmGetFiqState
+ mrs R0,CPSR
+ tst R0,#0x40 ;Check if IRQ is enabled.
+ moveq R0,#1
+ movne R0,#0
+ bx LR
ArmInvalidateTlb
mov r0,#0
ReadCCSIDR
MCR p15,2,r0,c0,c0,0 ; Write Cache Size Selection Register (CSSELR)
ISB
- MRC p15,1,<Rt>,c0,c0,0 ; Read current CP15 Cache Size ID Register (CCSIDR)
+ MRC p15,1,r0,c0,c0,0 ; Read current CP15 Cache Size ID Register (CCSIDR)
BX lr
// IN UINT32 CSSELR
// )
ReadCLIDR
- MRC p15,1,<Rt>,c0,c0,1 ; Read CP15 Cache Level ID Register
+ MRC p15,1,r0,c0,c0,1 ; Read CP15 Cache Level ID Register
END