diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-24 23:20:00 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-24 23:20:00 +0000 |
commit | 4b9fa12943e65c65d8bf905aba36f035bff8997b (patch) | |
tree | 7362636ff00aa0ab6e58d6c1bc9c2b011f193740 /ArmPkg/Library/ArmLib/Arm9/Arm9Support.asm | |
parent | 026c3d34ee83b4df623cc80761450a53e9f7622b (diff) | |
download | edk2-platforms-4b9fa12943e65c65d8bf905aba36f035bff8997b.tar.xz |
Move ARMv5 (ARM9) barrier instructions into assembler files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10064 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg/Library/ArmLib/Arm9/Arm9Support.asm')
-rw-r--r-- | ArmPkg/Library/ArmLib/Arm9/Arm9Support.asm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ArmPkg/Library/ArmLib/Arm9/Arm9Support.asm b/ArmPkg/Library/ArmLib/Arm9/Arm9Support.asm index 82634c7929..e4acca1519 100644 --- a/ArmPkg/Library/ArmLib/Arm9/Arm9Support.asm +++ b/ArmPkg/Library/ArmLib/Arm9/Arm9Support.asm @@ -28,6 +28,9 @@ EXPORT ArmDisableInstructionCache EXPORT ArmEnableBranchPrediction EXPORT ArmDisableBranchPrediction + EXPORT ArmDataMemoryBarrier + EXPORT ArmDataSyncronizationBarrier + EXPORT ArmInstructionSynchronizationBarrier DC_ON EQU ( 0x1:SHL:2 ) @@ -132,4 +135,19 @@ ArmEnableBranchPrediction ArmDisableBranchPrediction bx LR ;Branch prediction is not supported. +ASM_PFX(ArmDataMemoryBarrier): + mov R0, #0 + mcr P15, #0, R0, C7, C10, #5 ; Check to see if this is correct + bx LR + +ASM_PFX(ArmDataSyncronizationBarrier): + mov R0, #0 + mcr P15, #0, R0, C7, C10, #4 ; Check to see if this is correct + bx LR + +ASM_PFX(ArmInstructionSynchronizationBarrier): + MOV R0, #0 + MCR P15, #0, R0, C7, C5, #4 ; Check to see if this is correct + bx LR + END |