diff options
Diffstat (limited to 'ArmPlatformPkg/PrePi/PrePi.c')
-rwxr-xr-x | ArmPlatformPkg/PrePi/PrePi.c | 15 |
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
|