# CpuFlushTlb() for ARM\r
#\r
# Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
-# Portions copyright (c) 2008-2009 Apple Inc.<BR>\r
+# Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
#\r
ASM_PFX(CpuFlushTlb):\r
mov r0,#0\r
- mcr p15,0,r0,c8,c5,0 # Invalidate all the unlocked entried in TLB\r
+ mcr p15,0,r0,c8,c5,0 // Invalidate all the unlocked entried in TLB\r
bx LR\r
; CpuFlushTlb() for ARM\r
;\r
; Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
-; Portions copyright (c) 2008-2009 Apple Inc.<BR>\r
+; Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>\r
; All rights reserved. This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
# CpuSleep() for ARM\r
#\r
# Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
-# Portions copyright (c) 2008-2009 Apple Inc.<BR>\r
+# Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
#\r
ASM_PFX(CpuSleep):\r
mov r0,#0\r
- mcr p15,0,r0,c7,c0,4 ;Wait for Interrupt instruction\r
+ mcr p15,0,r0,c7,c0,4 // Wait for Interrupt instruction\r
bx lr\r
; CpuSleep() for ARM\r
;\r
; Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
-; Portions copyright (c) 2008-2009 Apple Inc.<BR>\r
+; Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>\r
; All rights reserved. This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
# PAL CALLs for IPF, and empty functions for EBC.\r
#\r
# Copyright (c) 2007 - 2008, Intel Corporation.<BR>\r
-# Portions Copyright (c) 2008-2009 Apple Inc.<BR>\r
+# Portions Copyright (c) 2008-2009 Apple Inc. All rights reserved.\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
CpuFlushTlb function for Ia32/X64 GCC.\r
\r
Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
- Portions copyright (c) 2008-2009 Apple Inc.<BR>\r
+ Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-\r
+#include <Library/BaseLib.h>\r
\r
/**\r
Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r
VOID\r
)\r
{\r
- __asm__ __volatile__ (\r
- "movl %%cr3, %0\n\t"\r
- "movl %0, %%cr3 "\r
- : "r" // %0\r
- );\r
+ AsmWriteCr3 (AsmReadCr3 ());\r
}\r
\r
CpuSleep function for Ia32/X64 GCC.\r
\r
Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
- Portions copyright (c) 2008-2009 Apple Inc.<BR>\r
+ Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r