summaryrefslogtreecommitdiffstats
path: root/ArmPlatformPkg/PrePi
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2013-08-06 17:41:53 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2013-08-06 17:41:53 +0000
commit6dafb3030d1f5a7c281a7cba6c6f7914b5a3b065 (patch)
treee67e237f7c2a3a8a3c2709fc05c51ce6e68dd6f0 /ArmPlatformPkg/PrePi
parentbb058bcdfbfeb91e3c6c3f61559ca3d7239062f9 (diff)
downloadedk2-6dafb3030d1f5a7c281a7cba6c6f7914b5a3b065.tar.gz
edk2-6dafb3030d1f5a7c281a7cba6c6f7914b5a3b065.tar.bz2
edk2-6dafb3030d1f5a7c281a7cba6c6f7914b5a3b065.zip
ArmPlatformPkg: PrePei Cache disable and invalidate.
- Disable data cache on all cores. - Do not clean caches as there might be junk in them, invalidate only. 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@14527 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/PrePi')
-rwxr-xr-xArmPlatformPkg/PrePi/PrePi.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/ArmPlatformPkg/PrePi/PrePi.c b/ArmPlatformPkg/PrePi/PrePi.c
index e8b1ff7ed7..7ef88c0e36 100755
--- a/ArmPlatformPkg/PrePi/PrePi.c
+++ b/ArmPlatformPkg/PrePi/PrePi.c
@@ -1,6 +1,6 @@
/** @file
*
-* Copyright (c) 2011-2012, ARM Limited. All rights reserved.
+* Copyright (c) 2011-2013, ARM Limited. All rights reserved.
*
* This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License
@@ -222,16 +222,13 @@ CEntryPoint (
StartTimeStamp = 0;
}
- // Clean Data cache
- ArmCleanInvalidateDataCache ();
-
+ // Data Cache enabled on Primary core when MMU is enabled.
+ ArmDisableDataCache ();
+ // Invalidate Data cache
+ ArmInvalidateDataCache ();
// Invalidate instruction cache
ArmInvalidateInstructionCache ();
-
- //TODO:Drain Write Buffer
-
- // Enable Instruction & Data caches
- ArmEnableDataCache ();
+ // Enable Instruction Caches on all cores.
ArmEnableInstructionCache ();
// Define the Global Variable region when we are not running in XIP