]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fixed issues compiling for Apple gcc on IA-32
authorAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 24 Sep 2009 21:48:45 +0000 (21:48 +0000)
committerAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 24 Sep 2009 21:48:45 +0000 (21:48 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9310 6f19259b-4bc3-4df7-8a09-765794883524

99 files changed:
EdkCompatibilityPkg/Foundation/Efi/Protocol/SimpleFileSystem/SimpleFileSystem.h
EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h
EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h
EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h
EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/CpuBreakpoint.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/CpuId.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/CpuIdEx.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/CpuPause.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/CpuSleep.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/DisableInterrupts.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/DisablePaging64.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/EnableDisableInterrupts.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/EnableInterrupts.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/EnablePaging64.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/FlushCacheLine.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/FxRestore.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/FxSave.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/InterlockedCompareExchange32.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/InterlockedCompareExchange64.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/InterlockedDecrement.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/InterlockedIncrement.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/Invd.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/LongJump.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/Monitor.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/Mwait.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadCr0.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadCr2.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadCr3.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadCr4.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadCs.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadDr0.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadDr1.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadDr2.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadDr3.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadDr4.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadDr5.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadDr6.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadDr7.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadDs.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadEflags.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadEs.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadFs.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadGdtr.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadGs.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadIdtr.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadLdtr.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadMm0.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadMm1.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadMm2.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadMm3.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadMm4.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadMm5.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadMm6.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadMm7.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadMsr64.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadPmc.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadSs.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadTr.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/ReadTsc.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/SetJump.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/SwitchStack.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/Wbinvd.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteCr0.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteCr2.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteCr3.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteCr4.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteDr0.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteDr1.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteDr2.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteDr3.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteDr4.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteDr5.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteDr6.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteDr7.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteGdtr.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteIdtr.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteLdtr.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteMm0.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteMm1.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteMm2.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteMm3.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteMm4.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteMm5.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteMm6.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteMm7.S
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/WriteMsr64.S
EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/X64/EfiCopyMemRep1.S
EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/X64/EfiSetMemRep4.S
EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/X64/EfiZeroMemRep4.S
EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ia32/ProcessorAsms.S
EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ipf/PioFlush.s
EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/X64/ProcessorAsms.S
EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/X64/SupportItpDebug.S
EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ia32/CpuFlushCache.S
EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ipf/EsalLib.s
EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/X64/RuntimeLibAsm.S
EdkCompatibilityPkg/Foundation/Library/Thunk16/Ia32/Thunk16.S
EdkCompatibilityPkg/Foundation/Library/Thunk16/X64/Fx.S

index 04cfaa5fc750b66603e58841eabb68186dfb0ace..f16ce39875649b20d32e61b719fecfeca81744a6 100644 (file)
@@ -110,7 +110,7 @@ EFI_STATUS
 //\r
 #define EFI_FILE_MODE_READ    0x0000000000000001\r
 #define EFI_FILE_MODE_WRITE   0x0000000000000002\r
-#define EFI_FILE_MODE_CREATE  0x8000000000000000\r
+#define EFI_FILE_MODE_CREATE  0x8000000000000000ULL\r
 \r
 //\r
 // File attributes\r
index d125cedac725b3b5a26163df71184eaa51433335..989b87326b1e78bf542de7d8f9e3a717baabb0dc 100644 (file)
@@ -60,6 +60,25 @@ Abstract:
 \r
 #define _EFI_INT_SIZE_OF(n) ((sizeof (n) + sizeof (UINTN) - 1) &~(sizeof (UINTN) - 1))\r
 \r
+#if defined(__GNUC__)\r
+//\r
+// Use GCC built-in macros for variable argument lists.\r
+//\r
+\r
+///\r
+/// Variable used to traverse the list of arguments. This type can vary by \r
+/// implementation and could be an array or structure. \r
+///\r
+typedef __builtin_va_list VA_LIST;\r
+\r
+#define VA_START(Marker, Parameter)  __builtin_va_start (Marker, Parameter)\r
+\r
+#define VA_ARG(Marker, TYPE)         ((sizeof (TYPE) < sizeof (UINTN)) ? (TYPE)(__builtin_va_arg (Marker, UINTN)) : (TYPE)(__builtin_va_arg (Marker, TYPE)))\r
+\r
+#define VA_END(Marker)               __builtin_va_end (Marker)\r
+\r
+#else\r
+\r
 //\r
 // Also support coding convention rules for var arg macros\r
 //\r
@@ -70,6 +89,9 @@ typedef CHAR8 *VA_LIST;
 #define VA_ARG(ap, t)   (*(t *) ((ap += _EFI_INT_SIZE_OF (t)) - _EFI_INT_SIZE_OF (t)))\r
 #define VA_END(ap)      (ap = (VA_LIST) 0)\r
 \r
+#endif\r
+\r
+\r
 #endif\r
 \r
 #endif\r
index 5cfbb741314edd6887e668e54ee0c090965ea805..12d7154d0baef7754124cbf5290523d41869fb3d 100644 (file)
@@ -83,7 +83,9 @@ Abstract:
 //\r
 // Make sure we are useing the correct packing rules per EFI specification\r
 //\r
+#ifndef __GNUC__\r
 #pragma pack()\r
+#endif\r
 \r
 #if __INTEL_COMPILER\r
 //\r
index a0ab02b83882b70faa9a7af8e1fdce753d916da4..14eca7a3016e2ecfeee4f0f6e71d10803f83cfce 100644 (file)
@@ -35,7 +35,9 @@ Abstract:
 //\r
 // Make sure we are useing the correct packing rules per EFI specification\r
 //\r
+#ifndef __GNUC__\r
 #pragma pack()\r
+#endif\r
 \r
 #if __INTEL_COMPILER\r
 //\r
index fdfb0af8e1ed6e27d9d1d9aa181df18e055067bf..646c298754681a689fb55e771f9de62247e5f101 100644 (file)
@@ -26,16 +26,20 @@ COMPONENT_TYPE  = LIBRARY
 [sources.common] \r
 \r
 [sources.ia32]\r
-  Ia32\memcpyRep1.asm\r
-  Ia32\memsetRep4.asm\r
-#  Ia32\memcpy.asm\r
-#  Ia32\memset.asm\r
+  Ia32/memcpyRep1.asm | MSFT\r
+  Ia32/memcpyRep1.asm | INTEL\r
+  Ia32/memsetRep4.asm | MSFT\r
+  Ia32/memsetRep4.asm | INTEL\r
+  memcpy.c            | GCC\r
+  memset.c            | GCC\r
   \r
 [sources.x64]  \r
-  x64\memcpyRep1.asm\r
-  x64\memsetRep4.asm\r
-#  x64\memcpy.asm\r
-#  x64\memset.asm\r
+  x64/memcpyRep1.asm | MSFT\r
+  x64/memcpyRep1.asm | INTEL \r
+  x64/memsetRep4.asm | MSFT\r
+  x64/memsetRep4.asm | INTEL\r
+  memcpy.c           | GCC\r
+  memset.c           | GCC\r
   \r
 [sources.Ipf]  \r
   memcpy.c\r
index ec9a750e635d39192d8c95e03b7a2c682748df38..4dd033342b40aa14682519ebf1334f779de5090d 100644 (file)
@@ -1,26 +1,26 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   CpuBreakpoint.S\r
-#\r
-# Abstract:\r
-#\r
-#   Implementation of CpuBreakpoint() on x86_64\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EdkIIGlueBase.h>\r
-\r
-.global ASM_PFX(CpuBreakpoint)\r
-ASM_PFX(CpuBreakpoint):\r
-       int $0x3\r
-       ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   CpuBreakpoint.S
+#
+# Abstract:
+#
+#   Implementation of CpuBreakpoint() on x86_64
+#
+#------------------------------------------------------------------------------
+#include <EdkIIGlueBase.h>
+
+.globl ASM_PFX(CpuBreakpoint)
+ASM_PFX(CpuBreakpoint):
+       int $0x3
+       ret
index 8bf4b2b729bc2d668d46a660acb0c32f95b0d29b..df1a4084fbfe3cded6dc04875d0e2166bbba9ba5 100644 (file)
@@ -1,62 +1,62 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   CpuId.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmCpuid function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID\r
-#  EFIAPI\r
-#  AsmCpuid (\r
-#    IN   UINT32  RegisterInEax,\r
-#    OUT  UINT32  *RegisterOutEax  OPTIONAL,\r
-#    OUT  UINT32  *RegisterOutEbx  OPTIONAL,\r
-#    OUT  UINT32  *RegisterOutEcx  OPTIONAL,\r
-#    OUT  UINT32  *RegisterOutEdx  OPTIONAL\r
-#    )\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmCpuid)\r
-ASM_PFX(AsmCpuid):\r
-    push    %rbx\r
-    mov     %ecx, %eax\r
-    push    %rax                         # save Index on stack\r
-    push    %rdx\r
-    cpuid\r
-    test    %r9, %r9\r
-    jz      L1\r
-    mov     %ecx, (%r9)\r
-L1:\r
-    pop     %rcx\r
-    jrcxz   L2\r
-    mov     %eax, (%rcx)\r
-L2:\r
-    mov     %r8, %rcx\r
-    jrcxz   L3\r
-    mov     %ebx, (%rcx)\r
-L3:\r
-    mov     0x38(%rsp), %rcx\r
-    jrcxz   L4\r
-    mov     %edx, (%rcx)\r
-L4:\r
-    pop     %rax                         # restore Index to rax as return value\r
-    pop     %rbx\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   CpuId.S
+#
+# Abstract:
+#
+#   AsmCpuid function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+
+#------------------------------------------------------------------------------
+#  VOID
+#  EFIAPI
+#  AsmCpuid (
+#    IN   UINT32  RegisterInEax,
+#    OUT  UINT32  *RegisterOutEax  OPTIONAL,
+#    OUT  UINT32  *RegisterOutEbx  OPTIONAL,
+#    OUT  UINT32  *RegisterOutEcx  OPTIONAL,
+#    OUT  UINT32  *RegisterOutEdx  OPTIONAL
+#    )
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmCpuid)
+ASM_PFX(AsmCpuid):
+    push    %rbx
+    mov     %ecx, %eax
+    push    %rax                         # save Index on stack
+    push    %rdx
+    cpuid
+    test    %r9, %r9
+    jz      L1
+    mov     %ecx, (%r9)
+L1:
+    pop     %rcx
+    jrcxz   L2
+    mov     %eax, (%rcx)
+L2:
+    mov     %r8, %rcx
+    jrcxz   L3
+    mov     %ebx, (%rcx)
+L3:
+    mov     0x38(%rsp), %rcx
+    jrcxz   L4
+    mov     %edx, (%rcx)
+L4:
+    pop     %rax                         # restore Index to rax as return value
+    pop     %rbx
+    ret
index a40be32285949170375b142e78b589ac07879097..83dd0773438243e69989a29dbe1e7c12314ab320 100644 (file)
@@ -1,63 +1,63 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   CpuIdEx.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   AsmCpuidEx function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EdkIIGlueBase.h>\r
-\r
-#------------------------------------------------------------------------------\r
-#  UINT32\r
-#  EFIAPI\r
-#  AsmCpuidEx (\r
-#    IN   UINT32  RegisterInEax,\r
-#    IN   UINT32  RegisterInEcx,\r
-#    OUT  UINT32  *RegisterOutEax  OPTIONAL,\r
-#    OUT  UINT32  *RegisterOutEbx  OPTIONAL,\r
-#    OUT  UINT32  *RegisterOutEcx  OPTIONAL,\r
-#    OUT  UINT32  *RegisterOutEdx  OPTIONAL\r
-#    )\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmCpuidEx)\r
-ASM_PFX(AsmCpuidEx):\r
-    push    %rbx\r
-    movl    %ecx,%eax\r
-    movl    %edx,%ecx\r
-    push    %rax\r
-    cpuid\r
-    mov     0x38(%rsp), %r10\r
-    test    %r10, %r10\r
-    jz      L1\r
-    mov     %ecx,(%r10)\r
-L1: \r
-    mov     %r8, %rcx\r
-    jrcxz   L2\r
-    movl    %eax,(%rcx)\r
-L2: \r
-    mov     %r9, %rcx\r
-    jrcxz   L3\r
-    mov     %ebx, (%rcx)\r
-L3: \r
-    mov     0x40(%rsp), %rcx\r
-    jrcxz   L4\r
-    mov     %edx, (%rcx)\r
-L4: \r
-    pop     %rax\r
-    pop     %rbx\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   CpuIdEx.Asm
+#
+# Abstract:
+#
+#   AsmCpuidEx function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+#include <EdkIIGlueBase.h>
+
+#------------------------------------------------------------------------------
+#  UINT32
+#  EFIAPI
+#  AsmCpuidEx (
+#    IN   UINT32  RegisterInEax,
+#    IN   UINT32  RegisterInEcx,
+#    OUT  UINT32  *RegisterOutEax  OPTIONAL,
+#    OUT  UINT32  *RegisterOutEbx  OPTIONAL,
+#    OUT  UINT32  *RegisterOutEcx  OPTIONAL,
+#    OUT  UINT32  *RegisterOutEdx  OPTIONAL
+#    )
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmCpuidEx)
+ASM_PFX(AsmCpuidEx):
+    push    %rbx
+    movl    %ecx,%eax
+    movl    %edx,%ecx
+    push    %rax
+    cpuid
+    mov     0x38(%rsp), %r10
+    test    %r10, %r10
+    jz      L1
+    mov     %ecx,(%r10)
+L1: 
+    mov     %r8, %rcx
+    jrcxz   L2
+    movl    %eax,(%rcx)
+L2: 
+    mov     %r9, %rcx
+    jrcxz   L3
+    mov     %ebx, (%rcx)
+L3: 
+    mov     0x40(%rsp), %rcx
+    jrcxz   L4
+    mov     %edx, (%rcx)
+L4: 
+    pop     %rax
+    pop     %rbx
+    ret
index bb988d7e45c78408a4b3b9cfa782b41f5c860cb4..3c605f821fef881926e9b8460c606f3232acf5c3 100644 (file)
@@ -28,7 +28,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(CpuPause)\r
+.globl ASM_PFX(CpuPause)\r
 ASM_PFX(CpuPause):\r
     pause\r
     ret\r
index ce0a4e9d6e1198aaae64feeb6eb3219ce73fa3e8..b7e1875af79a8f2f7f8594d2e979f5cfed49ba0f 100644 (file)
@@ -28,7 +28,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(CpuSleep)\r
+.globl ASM_PFX(CpuSleep)\r
 ASM_PFX(CpuSleep):\r
     hlt\r
     ret\r
index 3b951f8b1b8251a9dad6b9e483c9009cb2e815e3..8a359e568f6bb4c59eb330ff1867bf61af71b7fd 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(DisableInterrupts)\r
+.globl ASM_PFX(DisableInterrupts)\r
 ASM_PFX(DisableInterrupts):\r
     cli\r
     ret\r
index e559246c59be017d39efa936e24e7d36fa1d79d5..5e0b4d5e741ebddce557deebd5f4b95af3b24e37 100644 (file)
@@ -1,66 +1,66 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   DisablePaging64.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmDisablePaging64 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-    \r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# InternalX86DisablePaging64 (\r
-#   IN      UINT16                    Cs,                      %rdi\r
-#   IN      UINT64                    EntryPoint,              %rsi\r
-#   IN      UINT64                    Context1,  OPTIONAL      %rdx\r
-#   IN      UINT32                    Context2,  OPTIONAL      %rcx\r
-#   IN      UINT64                    NewStack                 %r8\r
-#   );\r
-#------------------------------------------------------------------------------\r
-\r
-.global ASM_PFX(InternalX86DisablePaging64)\r
-ASM_PFX(InternalX86DisablePaging64):\r
-    cli    \r
-    shl    $0x20,%rcx\r
-    lea    (%rip), %eax\r
-    mov    %eax,%ecx\r
-    push   %rcx\r
-    mov    %edx,%ebx\r
-    mov    %r8d,%esi\r
-    mov    %r9d,%edi\r
-    mov    0x28(%rsp),%eax\r
-    lret   \r
-L1:\r
-    mov    %eax,%esp\r
-    mov    %cr0,%rax\r
-    btr    $0x1f,%eax\r
-    mov    %rax,%cr0\r
-    mov    $0xc0000080,%ecx\r
-    rdmsr  \r
-    and    $0xfe,%ah\r
-    wrmsr  \r
-    mov    %cr4,%rax\r
-    and    $0xdf,%al\r
-    mov    %rax,%cr4\r
-    push   %rdi\r
-    push   %rsi\r
-    callq  *%rbx\r
-    jmp    .\r
-\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   DisablePaging64.S
+#
+# Abstract:
+#
+#   AsmDisablePaging64 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+    
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# InternalX86DisablePaging64 (
+#   IN      UINT16                    Cs,                      %rdi
+#   IN      UINT64                    EntryPoint,              %rsi
+#   IN      UINT64                    Context1,  OPTIONAL      %rdx
+#   IN      UINT32                    Context2,  OPTIONAL      %rcx
+#   IN      UINT64                    NewStack                 %r8
+#   );
+#------------------------------------------------------------------------------
+
+.globl ASM_PFX(InternalX86DisablePaging64)
+ASM_PFX(InternalX86DisablePaging64):
+    cli    
+    shl    $0x20,%rcx
+    lea    (%rip), %eax
+    mov    %eax,%ecx
+    push   %rcx
+    mov    %edx,%ebx
+    mov    %r8d,%esi
+    mov    %r9d,%edi
+    mov    0x28(%rsp),%eax
+    lret   
+L1:
+    mov    %eax,%esp
+    mov    %cr0,%rax
+    btr    $0x1f,%eax
+    mov    %rax,%cr0
+    mov    $0xc0000080,%ecx
+    rdmsr  
+    and    $0xfe,%ah
+    wrmsr  
+    mov    %cr4,%rax
+    and    $0xdf,%al
+    mov    %rax,%cr4
+    push   %rdi
+    push   %rsi
+    callq  *%rbx
+    jmp    .
+
index 613ce363deb935ce36824c603058a31ec802ce92..36e8a0b5a7139abe104d90f5a362226710fe38ef 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   EnableDisableInterrupts.S\r
-#\r
-# Abstract:\r
-#\r
-#   EnableDisableInterrupts function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# EnableDisableInterrupts (\r
-#   VOID\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(EnableDisableInterrupts)\r
-ASM_PFX(EnableDisableInterrupts):\r
-    sti\r
-    cli\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006 - 2009, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   EnableDisableInterrupts.S
+#
+# Abstract:
+#
+#   EnableDisableInterrupts function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# EnableDisableInterrupts (
+#   VOID
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(EnableDisableInterrupts)
+ASM_PFX(EnableDisableInterrupts):
+    sti
+    cli
+    ret
index a3b694532564eb6865d32084291775a119ec2b32..46d25a2ed9e7de8a777a578a872c62ab4c639c6b 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   EnableInterrupts.S\r
-#\r
-# Abstract:\r
-#\r
-#   EnableInterrupts function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# EnableInterrupts (\r
-#   VOID\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(EnableInterrupts)\r
-ASM_PFX(EnableInterrupts):\r
-    sti\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   EnableInterrupts.S
+#
+# Abstract:
+#
+#   EnableInterrupts function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# EnableInterrupts (
+#   VOID
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(EnableInterrupts)
+ASM_PFX(EnableInterrupts):
+    sti
+    ret
index c59b53bc9544300e2fc9c04c998867bec1e8fcfd..9c78fc9a0a9c82835e672e0c11de3666075ca164 100644 (file)
@@ -1,61 +1,61 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   EnablePaging64.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmEnablePaging64 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# InternalX86EnablePaging64 (\r
-#   IN      UINT16                    Cs,                      %rdi\r
-#   IN      UINT64                    EntryPoint,              %rsi\r
-#   IN      UINT64                    Context1,  OPTIONAL      %rdx\r
-#   IN      UINT64                    Context2,  OPTIONAL      %rcx\r
-#   IN      UINT64                    NewStack                 %r8\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalX86EnablePaging64)\r
-ASM_PFX(InternalX86EnablePaging64):\r
-    cli    \r
-    pop    %rax\r
-    callq  Base\r
-Base:\r
-    addl   $(L1-Base),(%rsp)\r
-    mov    %cr4,%rax\r
-    or     $0x20,%al\r
-    mov    %rax,%cr4\r
-    mov    $0xc0000080,%ecx\r
-    rdmsr  \r
-    or     $0x1,%ah\r
-    wrmsr  \r
-    mov    %cr0,%rax\r
-    bts    $0x1f,%eax\r
-    mov    %rax,%cr0\r
-    lret   \r
-L1:\r
-    addr32 mov (%esp),%rbx\r
-    addr32 mov 0x8(%esp),%rcx\r
-    addr32 mov 0x10(%esp),%rdx\r
-    addr32 mov 0x18(%esp),%rsp\r
-    add    $-0x20,%rsp\r
-    callq  *%rbx\r
-    jmp    .\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   EnablePaging64.S
+#
+# Abstract:
+#
+#   AsmEnablePaging64 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# InternalX86EnablePaging64 (
+#   IN      UINT16                    Cs,                      %rdi
+#   IN      UINT64                    EntryPoint,              %rsi
+#   IN      UINT64                    Context1,  OPTIONAL      %rdx
+#   IN      UINT64                    Context2,  OPTIONAL      %rcx
+#   IN      UINT64                    NewStack                 %r8
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(InternalX86EnablePaging64)
+ASM_PFX(InternalX86EnablePaging64):
+    cli    
+    pop    %rax
+    callq  Base
+Base:
+    addl   $(L1-Base),(%rsp)
+    mov    %cr4,%rax
+    or     $0x20,%al
+    mov    %rax,%cr4
+    mov    $0xc0000080,%ecx
+    rdmsr  
+    or     $0x1,%ah
+    wrmsr  
+    mov    %cr0,%rax
+    bts    $0x1f,%eax
+    mov    %rax,%cr0
+    lret   
+L1:
+    addr32 mov (%esp),%rbx
+    addr32 mov 0x8(%esp),%rcx
+    addr32 mov 0x10(%esp),%rdx
+    addr32 mov 0x18(%esp),%rsp
+    add    $-0x20,%rsp
+    callq  *%rbx
+    jmp    .
index ee34b60e6a5c52fa009a118c11fe28d5d5549581..20294f03d51e50044ef3a6cd63915e64a28ff48f 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   FlushCacheLine.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmFlushCacheLine function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID *\r
-# EFIAPI \r
-# AsmFlushCacheLine (\r
-#   IN      VOID                      *LinearAddress\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmFlushCacheLine)\r
-ASM_PFX(AsmFlushCacheLine):\r
-    clflush (%rdi)\r
-    mov     %rdi, %rax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   FlushCacheLine.S
+#
+# Abstract:
+#
+#   AsmFlushCacheLine function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID *
+# EFIAPI 
+# AsmFlushCacheLine (
+#   IN      VOID                      *LinearAddress
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmFlushCacheLine)
+ASM_PFX(AsmFlushCacheLine):
+    clflush (%rdi)
+    mov     %rdi, %rax
+    ret
index 39fe7363c544339dcf519ec642e68e7c359995d7..e4070ff0c684ad5d3c406c25a58c0d71f676069b 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   FxRestore.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmFxRestore function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# InternalX86FxRestore (\r
-#   IN CONST IA32_FX_BUFFER *Buffer\r
-#   )#\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalX86FxRestore)\r
-ASM_PFX(InternalX86FxRestore):\r
-    fxrstor (%rcx)\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   FxRestore.S
+#
+# Abstract:
+#
+#   AsmFxRestore function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# InternalX86FxRestore (
+#   IN CONST IA32_FX_BUFFER *Buffer
+#   )#
+#------------------------------------------------------------------------------
+.globl ASM_PFX(InternalX86FxRestore)
+ASM_PFX(InternalX86FxRestore):
+    fxrstor (%rcx)
+    ret
index dbf5a4666da26c5590f6cfd1d9fe603ccc8d5133..e14f323f505f556c6a786b71a6a20e822298465b 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   FxSave.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmFxSave function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# InternalX86FxSave (\r
-#   OUT IA32_FX_BUFFER *Buffer\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalX86FxSave)\r
-ASM_PFX(InternalX86FxSave):\r
-    fxsave  (%rcx)\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   FxSave.S
+#
+# Abstract:
+#
+#   AsmFxSave function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# InternalX86FxSave (
+#   OUT IA32_FX_BUFFER *Buffer
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(InternalX86FxSave)
+ASM_PFX(InternalX86FxSave):
+    fxsave  (%rcx)
+    ret
index 8058666a7dae67076a25990c1d905b21b2edb5a0..3eabbdcaac6cb9cf7f430ab341cd037790b19177 100644 (file)
@@ -30,7 +30,7 @@
 #   IN      UINT32                    ExchangeValue\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalSyncCompareExchange32)\r
+.globl ASM_PFX(InternalSyncCompareExchange32)\r
 ASM_PFX(InternalSyncCompareExchange32):\r
     mov     %edx, %eax\r
     lock    cmpxchg %r8d, (%rcx)\r
index 4e64d761a8c9ce97d5224e7edff8570450eed054..2242a2351dc63c1354c408d847665a2dfad0959f 100644 (file)
@@ -1,38 +1,38 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   InterlockedCompareExchange64.S\r
-#\r
-# Abstract:\r
-#\r
-#   InterlockedCompareExchange64 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINT64\r
-# EFIAPI\r
-# InterlockedCompareExchange64 (\r
-#   IN      UINT64                    *Value,\r
-#   IN      UINT64                    CompareValue,\r
-#   IN      UINT64                    ExchangeValue\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalSyncCompareExchange64)\r
-ASM_PFX(InternalSyncCompareExchange64):\r
-    mov     %rsi, %rax\r
-    lock    cmpxchg %rdx,(%rdi)\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006 - 2009, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   InterlockedCompareExchange64.S
+#
+# Abstract:
+#
+#   InterlockedCompareExchange64 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINT64
+# EFIAPI
+# InterlockedCompareExchange64 (
+#   IN      UINT64                    *Value,
+#   IN      UINT64                    CompareValue,
+#   IN      UINT64                    ExchangeValue
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(InternalSyncCompareExchange64)
+ASM_PFX(InternalSyncCompareExchange64):
+    mov     %rsi, %rax
+    lock    cmpxchg %rdx,(%rdi)
+    ret
index 36ade072769f2ab1f3402c2c53e40156b7499576..14a6bd683699776e1074ff55497d8dacfdaeb1de 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   InterlockedDecrement.S\r
-#\r
-# Abstract:\r
-#\r
-#   InterlockedDecrement function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINT32\r
-# EFIAPI\r
-# InterlockedDecrement (\r
-#   IN      UINT32                    *Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalSyncDecrement)\r
-ASM_PFX(InternalSyncDecrement):\r
-    lock    decl (%rcx)\r
-    mov     (%rcx), %eax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   InterlockedDecrement.S
+#
+# Abstract:
+#
+#   InterlockedDecrement function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINT32
+# EFIAPI
+# InterlockedDecrement (
+#   IN      UINT32                    *Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(InternalSyncDecrement)
+ASM_PFX(InternalSyncDecrement):
+    lock    decl (%rcx)
+    mov     (%rcx), %eax
+    ret
index e77dc17d9da1705de05b9fd0025cca27a671143d..437a1859a9d85fc308943753ddf3d659755f4ffc 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   InterlockedIncrement.S\r
-#\r
-# Abstract:\r
-#\r
-#   InterlockedIncrement function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINT32\r
-# EFIAPI\r
-# InterlockedIncrement (\r
-#   IN      UINT32                    *Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalSyncIncrement)\r
-ASM_PFX(InternalSyncIncrement):\r
-    lock    incl  (%rcx)\r
-    mov     (%rcx), %eax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   InterlockedIncrement.S
+#
+# Abstract:
+#
+#   InterlockedIncrement function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINT32
+# EFIAPI
+# InterlockedIncrement (
+#   IN      UINT32                    *Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(InternalSyncIncrement)
+ASM_PFX(InternalSyncIncrement):
+    lock    incl  (%rcx)
+    mov     (%rcx), %eax
+    ret
index 406875af3f272df5582d53759a797233939e5d8d..1f2ec6e8e7b3d68e973de570612927886e2904f0 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   Invd.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmInvd function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmInvd (\r
-#   VOID\r
-#   )#\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmInvd)\r
-ASM_PFX(AsmInvd):\r
-    invd\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   Invd.S
+#
+# Abstract:
+#
+#   AsmInvd function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmInvd (
+#   VOID
+#   )#
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmInvd)
+ASM_PFX(AsmInvd):
+    invd
+    ret
index 71e536d5f7153286ac031ac1499dca7d1c63e8c6..fd5aa096dc63861da884e6e6562f0cc844855030 100644 (file)
@@ -27,7 +27,7 @@
 #   IN      UINTN                     Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalLongJump)\r
+.globl ASM_PFX(InternalLongJump)\r
 ASM_PFX(InternalLongJump):\r
     mov     (%rcx), %rbx\r
     mov     0x8(%rcx), %rsp\r
index 0105364b78a529d7f938a8c61e0083cc3ac57913..65bcb9ff7e60591dca3b0de48a83dba449dd3425 100644 (file)
@@ -31,7 +31,7 @@
 #   IN      UINTN                     Edx\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmMonitor)\r
+.globl ASM_PFX(AsmMonitor)\r
 ASM_PFX(AsmMonitor):\r
     mov    %ecx,%eax\r
     mov    %edx,%ecx\r
index 9f72ce8e5fae135129d9667700adf97b2c617bf7..5c490f9ed70672cb24c3e4cf989b029fa6d016c4 100644 (file)
@@ -30,7 +30,7 @@
 #   IN      UINTN                     Ecx\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmMwait)\r
+.globl ASM_PFX(AsmMwait)\r
 ASM_PFX(AsmMwait):\r
     mov    %ecx,%eax\r
     mov    %edx,%ecx\r
index dabf0294034105168f147ec296644e79d5266df7..87827b7bc85691136c3abc08259d23946527fc50 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadCr0)\r
+.globl ASM_PFX(AsmReadCr0)\r
 ASM_PFX(AsmReadCr0):\r
     mov     %cr0, %rax\r
     ret\r
index 47b39f0c5c48c5631c103e514ffd24e85961118f..cd3d57cb8aacf325803b950768297bf70f4fb260 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadCr2)\r
+.globl ASM_PFX(AsmReadCr2)\r
 ASM_PFX(AsmReadCr2):\r
     mov     %cr2, %rax\r
     ret\r
index d54eaf5e95d1b2390e6e3fd072ed6fa4a0edea20..0e0a16ce8e940308ae73274931c4f9856a050fe7 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadCr3)\r
+.globl ASM_PFX(AsmReadCr3)\r
 ASM_PFX(AsmReadCr3):\r
     mov     %cr3, %rax\r
     ret\r
index 964e2b6b3fba9bbba8d6b59a5de3379282e7152f..5a3105b8b50caeb3dc6b2ce80d899255b4aedcb9 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadCr4)\r
+.globl ASM_PFX(AsmReadCr4)\r
 ASM_PFX(AsmReadCr4):\r
     mov     %cr4, %rax\r
     ret\r
index 04b1a1d11105839de8da5ef79eb717833c8bad14..eabf55e76abffebea26e10479eb72b24511a3280 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadCs)\r
+.globl ASM_PFX(AsmReadCs)\r
 ASM_PFX(AsmReadCs):\r
     mov     %cs, %eax\r
     ret\r
index 64f3311041a15c2494f0204e0430da4b51da2010..15089f0254993a323654cb5667b11a036414b3fb 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadDr0)\r
+.globl ASM_PFX(AsmReadDr0)\r
 ASM_PFX(AsmReadDr0):\r
     mov     %dr0, %rax\r
     ret\r
index c1b183a7763a677f7a7f654ead7fcb1749fe4dcd..79b3aa816527df8b70fd069d629cae099f58a403 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadDr1)\r
+.globl ASM_PFX(AsmReadDr1)\r
 ASM_PFX(AsmReadDr1):\r
     mov     %dr1, %rax\r
     ret\r
index 69cdddece8857c568a260f82c28bdae54b626c94..d55ab6a38af64c8fccc4206bbbb8906988869d29 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadDr2)\r
+.globl ASM_PFX(AsmReadDr2)\r
 ASM_PFX(AsmReadDr2):\r
     mov     %dr2, %rax\r
     ret\r
index 18865c01b19636a482ddff325aac7598517ae4e7..a7c319844a573995ff94c4b866f0a4d5a6ea7006 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadDr3)\r
+.globl ASM_PFX(AsmReadDr3)\r
 ASM_PFX(AsmReadDr3):\r
     mov     %dr3, %rax\r
     ret\r
index cec6e0bff44b41496e28d8c18d16e67737a723e9..99dfb3e3c0e6a6c391cbc9611f14f42a9e34c53f 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadDr4)\r
+.globl ASM_PFX(AsmReadDr4)\r
 ASM_PFX(AsmReadDr4):\r
     #DB      0fh, 21h, 0e0h\r
     mov     %dr4, %rax\r
index c0c4e6a3faf5a1464810d6209d0692a1c9fa5e47..6b98eb805059ae75c4618b269b22d722e243c2a1 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadDr5)\r
+.globl ASM_PFX(AsmReadDr5)\r
 ASM_PFX(AsmReadDr5):\r
     mov        %dr5, %rax\r
     ret\r
index e819e25144a1e70594c2ff65be073aa41e26f92e..46e0c90d8d01161ca3ac5a6f27fcb1282fd8d519 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadDr6)\r
+.globl ASM_PFX(AsmReadDr6)\r
 ASM_PFX(AsmReadDr6):\r
     mov        %dr6, %rax\r
     ret\r
index 7d3a70f41b92851f86417b62a595fe18ef4a18ff..7ababdac6efeb6ca7ec6918a7b7b304b1f826f35 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadDr7)\r
+.globl ASM_PFX(AsmReadDr7)\r
 ASM_PFX(AsmReadDr7):\r
     mov        %dr7, %rax\r
     ret\r
index 6511e100dbd763efca3b8b2b86d0176b23329982..cf631429f7153af344cbc8022faae337c13ec69c 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadDs)\r
+.globl ASM_PFX(AsmReadDs)\r
 ASM_PFX(AsmReadDs):\r
     movl       %ds, %eax\r
     ret\r
index 69744b65a6fa336d7f5d976e97bd6f7db4949796..8b5ee9adf80a7e994fc0943dae46e2831915b3dc 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadEflags)\r
+.globl ASM_PFX(AsmReadEflags)\r
 ASM_PFX(AsmReadEflags):\r
     pushfq\r
     pop     %rax\r
index 2f55a91611d6e6e547b894a0c9657b0e565feb64..94743870fd6ba8e9e611c1598f1262452bd569bd 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadEs)\r
+.globl ASM_PFX(AsmReadEs)\r
 ASM_PFX(AsmReadEs):\r
     mov     %es, %eax\r
     ret\r
index ae406bdf85821cc381f41aacfcc904e82115bc8c..0a4cb8a8179f7bcf07cfde1bb829a1c62c6e1f16 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadFs)\r
+.globl ASM_PFX(AsmReadFs)\r
 ASM_PFX(AsmReadFs):\r
     mov     %fs, %eax\r
     ret\r
index 2be2a88761ec8f1d9c75d4cd1adb6684b1c2fa82..4c461d9a5f6c9fac47e05a3152bd2be9b72bb871 100644 (file)
@@ -29,7 +29,7 @@
 #   OUT IA32_DESCRIPTOR  *Gdtr\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalX86ReadGdtr)\r
+.globl ASM_PFX(InternalX86ReadGdtr)\r
 ASM_PFX(InternalX86ReadGdtr):\r
     sgdt  (%rcx)\r
     ret\r
index 49c07e6bc3ca53579c38caf0bcba239f9ad4dea4..6a04e7b9c1a7e6eb75c682d5734cef2326bbdb1e 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadGs)\r
+.globl ASM_PFX(AsmReadGs)\r
 ASM_PFX(AsmReadGs):\r
     mov     %gs, %eax\r
     ret\r
index e1fe9c50572594a4a1c9aeca65f21d06f88f43ae..be8a8d837c33a9bbf009d904b66aa49cfc325467 100644 (file)
@@ -29,7 +29,7 @@
 #   OUT     IA32_DESCRIPTOR           *Idtr\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalX86ReadIdtr)\r
+.globl ASM_PFX(InternalX86ReadIdtr)\r
 ASM_PFX(InternalX86ReadIdtr):\r
     sidt    (%rcx)\r
     ret\r
index aa987b8bdec86e73e30751be4e271afcfb7e85a5..919886665bf8ee83eef83c0ee8a1a256551e94a5 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadLdtr)\r
+.globl ASM_PFX(AsmReadLdtr)\r
 ASM_PFX(AsmReadLdtr):\r
     sldt    %eax\r
     ret\r
index 5291e89ca76b053d7f5c28421002255c7815e615..0b0042f4c2aeab1adb57eca6b15963f92ff24571 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadMm0)\r
+.globl ASM_PFX(AsmReadMm0)\r
 ASM_PFX(AsmReadMm0):\r
     #DB      48h, 0fh, 7eh, 0c0h\r
     movd       %mm0, %rax\r
index e5d40805af52166228061bb2f3d17406953ece2c..7d663298dfc8af6bec6f260ad4d7d5f1704e3712 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadMm1)\r
+.globl ASM_PFX(AsmReadMm1)\r
 ASM_PFX(AsmReadMm1):\r
     #DB      48h, 0fh, 7eh, 0c8h\r
     movd       %mm1, %rax\r
index 880f8dd0c363f6043fc0ffb051dd4bb8998b696d..201c279bb846c4b9b2e5556ddce05b1b271bbc70 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadMm2)\r
+.globl ASM_PFX(AsmReadMm2)\r
 ASM_PFX(AsmReadMm2):\r
     #DB      48h, 0fh, 7eh, 0d0h\r
     movd       %mm2, %rax\r
index f8b0c24230d6f716b4222234b5ecedd963f1aecf..7654a7504011c725d12780f06dea6f8b6eb18c57 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadMm3)\r
+.globl ASM_PFX(AsmReadMm3)\r
 ASM_PFX(AsmReadMm3):\r
     #DB      48h, 0fh, 7eh, 0d8h\r
     movd       %mm3, %rax\r
index e6ffbbfde670886cc08666038e860bc564927283..81fab0b101ed5f783a874d40d6a8437b01db5b23 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadMm4)\r
+.globl ASM_PFX(AsmReadMm4)\r
 ASM_PFX(AsmReadMm4):\r
     #DB      48h, 0fh, 7eh, 0e0h\r
     movd       %mm4, %rax\r
index 1b10ad6129a62704d30745877ffa45aec6f883eb..1b2ed102518ebee42443dc338b72c0df657c7b71 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadMm5)\r
+.globl ASM_PFX(AsmReadMm5)\r
 ASM_PFX(AsmReadMm5):\r
     #DB      48h, 0fh, 7eh, 0e8h\r
     movd       %mm5, %rax\r
index 596ba914e1482838d0034042567d976a2ffcc01f..c9175f1cf072ff91311c5ac2fda3728c1b5641c4 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadMm6)\r
+.globl ASM_PFX(AsmReadMm6)\r
 ASM_PFX(AsmReadMm6):\r
     #DB      48h, 0fh, 7eh, 0f0h\r
     movd       %mm6, %rax\r
index 744bb57f67e9a9f6ee9e743d9931217b8439ae07..f8c0fdecbd5b576e2d2fb2bb9b9d9ca4de80c8f6 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadMm7)\r
+.globl ASM_PFX(AsmReadMm7)\r
 ASM_PFX(AsmReadMm7):\r
     #DB      48h, 0fh, 7eh, 0f8h\r
     movd       %mm7, %rax\r
index 290f0e3b6564750205dfb866b79287d1e58626ff..4b2b9b9339431afa0ff1d40089f00caef5e4799e 100644 (file)
@@ -29,7 +29,7 @@
 #   IN UINT32  Index\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadMsr64)\r
+.globl ASM_PFX(AsmReadMsr64)\r
 ASM_PFX(AsmReadMsr64):\r
     rdmsr                               # edx & eax are zero extended\r
     shl     $0x20, %rdx\r
index 71e72c7e8e5432c4a50d5a8ce946e13a92cf6f1d..48e9e30424bab151f94b60caf8924ec0c5e29036 100644 (file)
@@ -29,7 +29,7 @@
 #   IN UINT32   PmcIndex\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadPmc)\r
+.globl ASM_PFX(AsmReadPmc)\r
 ASM_PFX(AsmReadPmc):\r
     rdpmc\r
     shl     $0x20, %rdx\r
index 7853f8dce89849c38acb10ace7811d5e0797e079..9a8a4a4a96797679d05246a4e7a63e9905db69a9 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadSs);\r
+.globl ASM_PFX(AsmReadSs);\r
 ASM_PFX(AsmReadSs):\r
     movl     %ss, %eax\r
     ret\r
index f11af31885a3c5d05df13f86310089308fda9820..c699334470da958e0ae6ee75646ca4298977a01b 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadTr)\r
+.globl ASM_PFX(AsmReadTr)\r
 ASM_PFX(AsmReadTr): \r
     str     %eax\r
     ret\r
index 12cf255a292113d9522942b50aece072c21cba21..3464d2b86bd4ab5fe519f00bfb05ea703352d084 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmReadTsc)\r
+.globl ASM_PFX(AsmReadTsc)\r
 ASM_PFX(AsmReadTsc):\r
     rdtsc\r
     shl     $0x20, %rdx\r
index 805c6a3ed9531331505579e7af0cfebce83ed47e..55f58f1975221c80063609faca7b1a25d80e777b 100644 (file)
@@ -1,42 +1,42 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SetJump.S\r
-#\r
-# Abstract:\r
-#\r
-#   Implementation of SetJump() on x86_64\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EdkIIGlueBase.h>\r
-.extern InternalAssertJumpBuffer;\r
-.global ASM_PFX(SetJump)\r
-ASM_PFX(SetJump):\r
-    push   %rcx\r
-    add    $0xffffffffffffffe0,%rsp\r
-    call   _InternalAssertJumpBuffer\r
-    add    $0x20,%rsp\r
-    pop    %rcx\r
-    pop    %rdx\r
-    mov    %rbx,(%rcx)\r
-    mov    %rsp,0x8(%rcx)\r
-    mov    %rbp,0x10(%rcx)\r
-    mov    %rdi,0x18(%rcx)\r
-    mov    %rsi,0x20(%rcx)\r
-    mov    %r12,0x28(%rcx)\r
-    mov    %r13,0x30(%rcx)\r
-    mov    %r14,0x38(%rcx)\r
-    mov    %r15,0x40(%rcx)\r
-    mov    %rdx,0x48(%rcx)\r
-    xor    %rax,%rax\r
-    jmpq   *%rdx\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   SetJump.S
+#
+# Abstract:
+#
+#   Implementation of SetJump() on x86_64
+#
+#------------------------------------------------------------------------------
+#include <EdkIIGlueBase.h>
+.extern InternalAssertJumpBuffer;
+.globl ASM_PFX(SetJump)
+ASM_PFX(SetJump):
+    push   %rcx
+    add    $0xffffffffffffffe0,%rsp
+    call   _InternalAssertJumpBuffer
+    add    $0x20,%rsp
+    pop    %rcx
+    pop    %rdx
+    mov    %rbx,(%rcx)
+    mov    %rsp,0x8(%rcx)
+    mov    %rbp,0x10(%rcx)
+    mov    %rdi,0x18(%rcx)
+    mov    %rsi,0x20(%rcx)
+    mov    %r12,0x28(%rcx)
+    mov    %r13,0x30(%rcx)
+    mov    %r14,0x38(%rcx)
+    mov    %r15,0x40(%rcx)
+    mov    %rdx,0x48(%rcx)
+    xor    %rax,%rax
+    jmpq   *%rdx
index 1e504918d38c72c56362adb7f2709a8dd87bd8eb..8253e2f53da850810c4a350719d2d4493d1e5e02 100644 (file)
@@ -1,44 +1,44 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SwitchStack.S\r
-#\r
-# Abstract:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# Routine Description:\r
-#\r
-#   Routine for switching stacks with 1 parameter\r
-#\r
-# Arguments:\r
-#\r
-#   (rdi) EntryPoint    - Entry point with new stack.\r
-#   (rsi) Context1      - Parameter1 for entry point.\r
-#   (rdx)  Context2     - Parameter2 for entry point.\r
-#   (rcx)  NewStack     - Pointer to new stack.\r
-#\r
-# Returns:\r
-#\r
-#   None\r
-#\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalSwitchStack)\r
-ASM_PFX(InternalSwitchStack):\r
-    mov     %rcx, %rax\r
-    mov     %rdx, %rcx\r
-    mov     %r8, %rdx\r
-    lea     -0x20(%r9), %rsp\r
-    call    *%rax\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   SwitchStack.S
+#
+# Abstract:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# Routine Description:
+#
+#   Routine for switching stacks with 1 parameter
+#
+# Arguments:
+#
+#   (rdi) EntryPoint    - Entry point with new stack.
+#   (rsi) Context1      - Parameter1 for entry point.
+#   (rdx)  Context2     - Parameter2 for entry point.
+#   (rcx)  NewStack     - Pointer to new stack.
+#
+# Returns:
+#
+#   None
+#
+#------------------------------------------------------------------------------
+.globl ASM_PFX(InternalSwitchStack)
+ASM_PFX(InternalSwitchStack):
+    mov     %rcx, %rax
+    mov     %rdx, %rcx
+    mov     %r8, %rdx
+    lea     -0x20(%r9), %rsp
+    call    *%rax
index 1c195b32484df4814f049adb558ff9d8a196eafb..c5b80756c92204a4b85c714659d267e08c523cb7 100644 (file)
@@ -29,7 +29,7 @@
 #   VOID\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWbinvd)\r
+.globl ASM_PFX(AsmWbinvd)\r
 ASM_PFX(AsmWbinvd):\r
     wbinvd\r
     ret\r
index 53d6f18773548e3df2fc15466af934ffb58cd2c2..009311f103d6f68a2f62faae99962d94b94124f9 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteCr0.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteCr0 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINTN\r
-# EFIAPI\r
-# AsmWriteCr0 (\r
-#   UINTN  Cr0\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteCr0)\r
-ASM_PFX(AsmWriteCr0):\r
-    mov    %rcx,%cr0\r
-    mov    %rcx,%rax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteCr0.S
+#
+# Abstract:
+#
+#   AsmWriteCr0 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINTN
+# EFIAPI
+# AsmWriteCr0 (
+#   UINTN  Cr0
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteCr0)
+ASM_PFX(AsmWriteCr0):
+    mov    %rcx,%cr0
+    mov    %rcx,%rax
+    ret
index f54201b099a7ddf8a393d6055b8bcda6666fee73..3187341ba0ae08af0ab68b5b3b27f1d55202240e 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteCr2.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteCr2 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINTN\r
-# EFIAPI\r
-# AsmWriteCr2 (\r
-#   UINTN  Cr2\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteCr2)\r
-ASM_PFX(AsmWriteCr2):\r
-    mov    %rcx,%cr2\r
-    mov    %rcx,%rax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteCr2.S
+#
+# Abstract:
+#
+#   AsmWriteCr2 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINTN
+# EFIAPI
+# AsmWriteCr2 (
+#   UINTN  Cr2
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteCr2)
+ASM_PFX(AsmWriteCr2):
+    mov    %rcx,%cr2
+    mov    %rcx,%rax
+    ret
index 9d7e805ad5fc565137a25bbe9345f28ce8b3263c..a89cee4f0a61b06de441f803ebaef02e9b602c55 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteCr3.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteCr3 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINTN\r
-# EFIAPI\r
-# AsmWriteCr3 (\r
-#   UINTN  Cr3\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteCr3)\r
-ASM_PFX(AsmWriteCr3):\r
-    mov    %rcx,%cr3\r
-    mov    %rcx,%rax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteCr3.S
+#
+# Abstract:
+#
+#   AsmWriteCr3 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINTN
+# EFIAPI
+# AsmWriteCr3 (
+#   UINTN  Cr3
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteCr3)
+ASM_PFX(AsmWriteCr3):
+    mov    %rcx,%cr3
+    mov    %rcx,%rax
+    ret
index e5975289a350a894c576e496c0543bbab834a393..9f28591882e571e5c4da12d0ff8e82b0200bc0e7 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteCr4.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteCr4 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINTN\r
-# EFIAPI\r
-# AsmWriteCr4 (\r
-#   UINTN  Cr4\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteCr4)\r
-ASM_PFX(AsmWriteCr4):\r
-    mov    %rcx,%cr4\r
-    mov    %rcx,%rax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteCr4.S
+#
+# Abstract:
+#
+#   AsmWriteCr4 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINTN
+# EFIAPI
+# AsmWriteCr4 (
+#   UINTN  Cr4
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteCr4)
+ASM_PFX(AsmWriteCr4):
+    mov    %rcx,%cr4
+    mov    %rcx,%rax
+    ret
index 8d6ae4323fbdaa6f849f7ce05cc526b515ed67ed..3b5d9ef894c1ff0b5cb00ce28684639af9310017 100644 (file)
@@ -29,7 +29,7 @@
 #   UINTN  Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteDr0)\r
+.globl ASM_PFX(AsmWriteDr0)\r
 ASM_PFX(AsmWriteDr0):\r
     mov     %rcx, %dr0\r
     mov     %rcx, %rax\r
index 3178667bc88e5f9e381b050260ded497960b5920..72c48792ffcba7f9b909b5df055ceb90bbfdd4b4 100644 (file)
@@ -29,7 +29,7 @@
 #   UINTN  Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteDr1)\r
+.globl ASM_PFX(AsmWriteDr1)\r
 ASM_PFX(AsmWriteDr1):\r
     mov     %rcx, %dr1\r
     mov     %rcx, %rax\r
index d904d11cd3c6ab681ad6c5c56fc5261e4212a05a..6468f2fc45f0153abc74cc9922de3c02564a2955 100644 (file)
@@ -29,7 +29,7 @@
 #   UINTN  Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteDr2)\r
+.globl ASM_PFX(AsmWriteDr2)\r
 ASM_PFX(AsmWriteDr2):\r
     mov     %rcx, %dr2\r
     mov     %rcx, %rax\r
index 2138e1ecd63c1852e3287b7944afdf4713c05922..8cdc4aa537c399f44853d6631187aae9d72903c5 100644 (file)
@@ -29,7 +29,7 @@
 #   UINTN  Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteDr3)\r
+.globl ASM_PFX(AsmWriteDr3)\r
 ASM_PFX(AsmWriteDr3):\r
     mov     %rcx, %dr3\r
     mov     %rcx, %rax\r
index f2de21d49857da3fc012a3e6913b94c5fcf2f919..489a1dbaa4df0ab28cc31d982d3fff825c02b282 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteDr4.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteDr4 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINTN\r
-# EFIAPI\r
-# AsmWriteDr4 (\r
-#   IN UINTN Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteDr4)\r
-ASM_PFX(AsmWriteDr4):\r
-    mov     %rcx, %dr4\r
-    mov     %rcx, %rax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteDr4.S
+#
+# Abstract:
+#
+#   AsmWriteDr4 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINTN
+# EFIAPI
+# AsmWriteDr4 (
+#   IN UINTN Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteDr4)
+ASM_PFX(AsmWriteDr4):
+    mov     %rcx, %dr4
+    mov     %rcx, %rax
+    ret
index b9e56ebdd9f065c6bdc2440bad91f49b1ac0c23c..0476f09c88d0374d635d12d4aba16a5eaf06341b 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteDr5.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteDr5 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINTN\r
-# EFIAPI\r
-# AsmWriteDr5 (\r
-#   IN UINTN Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteDr5)\r
-ASM_PFX(AsmWriteDr5):\r
-    mov     %rcx, %dr5\r
-    mov     %rcx, %rax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteDr5.S
+#
+# Abstract:
+#
+#   AsmWriteDr5 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINTN
+# EFIAPI
+# AsmWriteDr5 (
+#   IN UINTN Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteDr5)
+ASM_PFX(AsmWriteDr5):
+    mov     %rcx, %dr5
+    mov     %rcx, %rax
+    ret
index 83530b63da9aae867bc1b801a9cff71abeeec83a..8e48f83680e16c82f626b2f77d6910fa2b824173 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteDr6.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteDr6 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINTN\r
-# EFIAPI\r
-# AsmWriteDr6 (\r
-#   IN UINTN Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteDr6)\r
-ASM_PFX(AsmWriteDr6):\r
-    mov     %rcx, %dr6\r
-    mov     %rcx, %rax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteDr6.S
+#
+# Abstract:
+#
+#   AsmWriteDr6 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINTN
+# EFIAPI
+# AsmWriteDr6 (
+#   IN UINTN Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteDr6)
+ASM_PFX(AsmWriteDr6):
+    mov     %rcx, %dr6
+    mov     %rcx, %rax
+    ret
index 6cfe8f6189e156eafb606fadb1022df141e1b376..de106968010806a693fc503852ae995a16fa82ae 100644 (file)
@@ -1,36 +1,36 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteDr7.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteDr7 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINTN\r
-# EFIAPI\r
-# AsmWriteDr7 (\r
-#   IN UINTN Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteDr7)\r
-ASM_PFX(AsmWriteDr7):\r
-    mov     %rcx, %dr7\r
-    mov     %rcx, %rax\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteDr7.S
+#
+# Abstract:
+#
+#   AsmWriteDr7 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINTN
+# EFIAPI
+# AsmWriteDr7 (
+#   IN UINTN Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteDr7)
+ASM_PFX(AsmWriteDr7):
+    mov     %rcx, %dr7
+    mov     %rcx, %rax
+    ret
index dce946985600a836431e0b959cbcb06a7d1fff38..aaf41ef2bf7e3aa1f0f03df23e1d7f720a0c62b8 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteGdtr.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteGdtr function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# InternalX86WriteGdtr (\r
-#   IN      CONST IA32_DESCRIPTOR     *Idtr\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalX86WriteGdtr)\r
-ASM_PFX(InternalX86WriteGdtr):\r
-    lgdt    (%rcx)\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteGdtr.S
+#
+# Abstract:
+#
+#   AsmWriteGdtr function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# InternalX86WriteGdtr (
+#   IN      CONST IA32_DESCRIPTOR     *Idtr
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(InternalX86WriteGdtr)
+ASM_PFX(InternalX86WriteGdtr):
+    lgdt    (%rcx)
+    ret
index 1d3ca8bac2fc6cdc39b5f54c497456950a428cec..2d219326c579b9ec39a489e4455708a9ae9fc959 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteIdtr.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteIdtr function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# InternalX86WriteIdtr (\r
-#   IN      CONST IA32_DESCRIPTOR     *Idtr\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(InternalX86WriteIdtr)\r
-ASM_PFX(InternalX86WriteIdtr):\r
-    lidt    (%rcx)\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006 - 2009, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteIdtr.S
+#
+# Abstract:
+#
+#   AsmWriteIdtr function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# InternalX86WriteIdtr (
+#   IN      CONST IA32_DESCRIPTOR     *Idtr
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(InternalX86WriteIdtr)
+ASM_PFX(InternalX86WriteIdtr):
+    lidt    (%rcx)
+    ret
index 29dcdcede853adcee76a5d8993600859cebf282f..ebeb73859f1493e0570f1671e109e1a3e593eadf 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteLdtr.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteLdtr function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmWriteLdtr (\r
-#   IN UINT16 Ldtr\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteLdtr);\r
-ASM_PFX(AsmWriteLdtr):\r
-    lldt    %cx\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006 - 2009, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteLdtr.S
+#
+# Abstract:
+#
+#   AsmWriteLdtr function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmWriteLdtr (
+#   IN UINT16 Ldtr
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteLdtr);
+ASM_PFX(AsmWriteLdtr):
+    lldt    %cx
+    ret
index ac690b280786cbe5ff2aa19a1d61c929bc2cbfa3..012b117233356a27741cfc44a7a3ed5d7f4afda4 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteMm0.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteMm0 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmWriteMm0 (\r
-#   IN UINT64   Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteMm0);\r
-ASM_PFX(AsmWriteMm0):\r
-    movd       %rcx, %xmm0\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteMm0.S
+#
+# Abstract:
+#
+#   AsmWriteMm0 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmWriteMm0 (
+#   IN UINT64   Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteMm0);
+ASM_PFX(AsmWriteMm0):
+    movd       %rcx, %xmm0
+    ret
index e21f55d3280aa702d00d7f087d050e6d0abc5072..994de7e2d679b4149ed6a92b25ae3d3568a36396 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteMm1.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteMm1 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmWriteMm1 (\r
-#   IN UINT64   Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteMm1);\r
-ASM_PFX(AsmWriteMm1):\r
-    movd       %rcx, %mm1\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteMm1.S
+#
+# Abstract:
+#
+#   AsmWriteMm1 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmWriteMm1 (
+#   IN UINT64   Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteMm1);
+ASM_PFX(AsmWriteMm1):
+    movd       %rcx, %mm1
+    ret
index f8ec39458d8fd12374bf476ba130688922f5d388..a80269eece9bccc0c307b24e3ef14e31b4917a3a 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteMm2.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteMm2 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmWriteMm2 (\r
-#   IN UINT64   Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteMm2)\r
-ASM_PFX(AsmWriteMm2):\r
-    movd       %rcx, %mm2\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteMm2.S
+#
+# Abstract:
+#
+#   AsmWriteMm2 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmWriteMm2 (
+#   IN UINT64   Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteMm2)
+ASM_PFX(AsmWriteMm2):
+    movd       %rcx, %mm2
+    ret
index 82d04b829e126e53b558d9d326888b23bdf3cfce..b8d4e3db9035331d7f7c4a38fcb19f6380210497 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteMm3.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteMm3 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmWriteMm3 (\r
-#   IN UINT64   Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteMm3)\r
-ASM_PFX(AsmWriteMm3):\r
-    movd       %rcx, %mm3\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteMm3.S
+#
+# Abstract:
+#
+#   AsmWriteMm3 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmWriteMm3 (
+#   IN UINT64   Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteMm3)
+ASM_PFX(AsmWriteMm3):
+    movd       %rcx, %mm3
+    ret
index 72406e391502c5fcd8cb2c066bca2c2c9b4f4ccd..177debbd10839cbe2a4f568163e92138a6bd0aac 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteMm4.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteMm4 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmWriteMm4 (\r
-#   IN UINT64   Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteMm4)\r
-ASM_PFX(AsmWriteMm4):\r
-    movd       %rcx, %mm4\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteMm4.S
+#
+# Abstract:
+#
+#   AsmWriteMm4 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmWriteMm4 (
+#   IN UINT64   Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteMm4)
+ASM_PFX(AsmWriteMm4):
+    movd       %rcx, %mm4
+    ret
index 39a6a3369370799ebac66e5820cac04534f6e578..8d037804d7b38e5e21b497321e59f8f964620c47 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteMm5.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteMm5 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmWriteMm5 (\r
-#   IN UINT64   Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteMm5)\r
-ASM_PFX(AsmWriteMm5):\r
-    movd       %rcx, %mm5\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteMm5.S
+#
+# Abstract:
+#
+#   AsmWriteMm5 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmWriteMm5 (
+#   IN UINT64   Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteMm5)
+ASM_PFX(AsmWriteMm5):
+    movd       %rcx, %mm5
+    ret
index a4540dc267419fa2eb163d75a41e57a1e473c10f..0b52b4ab2f2f3c0d76940fbce7ebdf8590944580 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteMm6.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteMm6 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmWriteMm6 (\r
-#   IN UINT64   Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteMm6)\r
-ASM_PFX(AsmWriteMm6):\r
-    movd       %rcx, %mm6\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteMm6.S
+#
+# Abstract:
+#
+#   AsmWriteMm6 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmWriteMm6 (
+#   IN UINT64   Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteMm6)
+ASM_PFX(AsmWriteMm6):
+    movd       %rcx, %mm6
+    ret
index 865b7162a4a84592d9bdca911eb1e9d90fc90c3e..392813b582e71f491d5975d182a65e899efa6dc8 100644 (file)
@@ -1,35 +1,35 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteMm7.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteMm7 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EFIAPI\r
-# AsmWriteMm7 (\r
-#   IN UINT64   Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteMm7)\r
-ASM_PFX(AsmWriteMm7):\r
-    movd       %rcx, %mm7\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteMm7.S
+#
+# Abstract:
+#
+#   AsmWriteMm7 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# VOID
+# EFIAPI
+# AsmWriteMm7 (
+#   IN UINT64   Value
+#   );
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteMm7)
+ASM_PFX(AsmWriteMm7):
+    movd       %rcx, %mm7
+    ret
index b646dac36a20377d0a1cfd211ec018116daf0ef2..c24ca6f48cd58e2a55b813b5d4b8e437d95475df 100644 (file)
@@ -1,39 +1,39 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   WriteMsr64.S\r
-#\r
-# Abstract:\r
-#\r
-#   AsmWriteMsr64 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-#include <EdkIIGlueBase.h>\r
-#------------------------------------------------------------------------------\r
-# UINT64\r
-# EFIAPI\r
-# AsmWriteMsr64 (\r
-#   IN UINT32  Index,\r
-#   IN UINT64  Value\r
-#   );\r
-# TODO:\r
-#------------------------------------------------------------------------------\r
-.global ASM_PFX(AsmWriteMsr64)\r
-ASM_PFX(AsmWriteMsr64):\r
-    mov        %rdx, %rax\r
-    shr $0x20, %rdx\r
-    wrmsr\r
-    ret\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2006 - 2009, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   WriteMsr64.S
+#
+# Abstract:
+#
+#   AsmWriteMsr64 function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+
+#include <EdkIIGlueBase.h>
+#------------------------------------------------------------------------------
+# UINT64
+# EFIAPI
+# AsmWriteMsr64 (
+#   IN UINT32  Index,
+#   IN UINT64  Value
+#   );
+# TODO:
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmWriteMsr64)
+ASM_PFX(AsmWriteMsr64):
+    mov        %rdx, %rax
+    shr $0x20, %rdx
+    wrmsr
+    ret
index efd184e1f6fd28f2964673699079f3f7c3642310..91ff872bb5465c1b78c54808e78606d58281e2dc 100644 (file)
@@ -1,66 +1,66 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2008, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   EfiCopyMemRep1.S\r
-#\r
-# Abstract:\r
-#\r
-#   CopyMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EfiBind.h>\r
-\r
-    .code: \r
-\r
-.global ASM_PFX(EfiCommonLibCopyMem)\r
-\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EfiCommonLibCopyMem (\r
-#   OUT     VOID                      *Destination,\r
-#   IN      VOID                      *Source,\r
-#   IN      UINTN                     Count\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(EfiCommonLibCopyMem):\r
-      push   %rsi\r
-      push   %rdi\r
-      cmp    %rcx,%rdx\r
-      je     CopyMemDone\r
-      cmp    $0x0,%r8\r
-      je     CopyMemDone\r
-      mov    %rdx,%rsi\r
-      mov    %rcx,%rdi\r
-      lea    -1(%r8,%rsi,1),%r9\r
-      cmp    %rdi,%rsi\r
-      jae    CopyBytes\r
-      cmp    %rdi,%r9\r
-      jb     CopyBytes\r
-      mov    %r9,%rsi\r
-      lea    -1(%r8,%rdi,1),%rdi\r
-      std    \r
-\r
-CopyBytes:\r
-      mov    %r8,%rcx\r
-      rep movsb %ds:(%rsi),%es:(%rdi)\r
-      cld    \r
-\r
-CopyMemDone:\r
-      pop    %rdi\r
-      pop    %rsi\r
-      retq   \r
-\r
-\r
-\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2008, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   EfiCopyMemRep1.S
+#
+# Abstract:
+#
+#   CopyMem function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+#include <EfiBind.h>
+
+    .code: 
+
+.globl ASM_PFX(EfiCommonLibCopyMem)
+
+#------------------------------------------------------------------------------
+# VOID
+# EfiCommonLibCopyMem (
+#   OUT     VOID                      *Destination,
+#   IN      VOID                      *Source,
+#   IN      UINTN                     Count
+#   );
+#------------------------------------------------------------------------------
+ASM_PFX(EfiCommonLibCopyMem):
+      push   %rsi
+      push   %rdi
+      cmp    %rcx,%rdx
+      je     CopyMemDone
+      cmp    $0x0,%r8
+      je     CopyMemDone
+      mov    %rdx,%rsi
+      mov    %rcx,%rdi
+      lea    -1(%r8,%rsi,1),%r9
+      cmp    %rdi,%rsi
+      jae    CopyBytes
+      cmp    %rdi,%r9
+      jb     CopyBytes
+      mov    %r9,%rsi
+      lea    -1(%r8,%rdi,1),%rdi
+      std    
+
+CopyBytes:
+      mov    %r8,%rcx
+      rep movsb %ds:(%rsi),%es:(%rdi)
+      cld    
+
+CopyMemDone:
+      pop    %rdi
+      pop    %rsi
+      retq   
+
+
+
index b2f1724e8bef2d3a095ac40c762fb28c4d24389e..56adc46ce9df1f5653373e53b1608e9236dca14c 100644 (file)
@@ -1,54 +1,54 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2008, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   EfiSetMemRep4.S\r
-#\r
-# Abstract:\r
-#\r
-#   SetMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EfiBind.h>\r
-\r
-    .code: \r
-\r
-.global ASM_PFX(EfiCommonLibCopyMem)\r
-\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# EfiCommonLibSetMem (\r
-#   OUT     VOID                      *Buffer,\r
-#   IN      UINTN                     Size,\r
-#   IN      UINT8                     Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(EfiCommonLibSetMem):\r
-      push   %rdi\r
-      cmp    $0x0,%rdx\r
-      je     SetDone\r
-      mov    %rcx,%rdi\r
-      mov    %r8b,%al\r
-      mov    %al,%ah\r
-      shrd   $0x10,%eax,%ecx\r
-      shld   $0x10,%ecx,%eax\r
-      mov    %rdx,%rcx\r
-      shr    $0x2,%rcx\r
-      rep stos %eax,%es:(%rdi)\r
-      mov    %rdx,%rcx\r
-      and    $0x3,%rcx\r
-      rep stos %al,%es:(%rdi)\r
-SetDone:\r
-      pop    %rdi\r
-      retq   \r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2008, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   EfiSetMemRep4.S
+#
+# Abstract:
+#
+#   SetMem function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+#include <EfiBind.h>
+
+    .code: 
+
+.globl ASM_PFX(EfiCommonLibCopyMem)
+
+#------------------------------------------------------------------------------
+# VOID
+# EfiCommonLibSetMem (
+#   OUT     VOID                      *Buffer,
+#   IN      UINTN                     Size,
+#   IN      UINT8                     Value
+#   );
+#------------------------------------------------------------------------------
+ASM_PFX(EfiCommonLibSetMem):
+      push   %rdi
+      cmp    $0x0,%rdx
+      je     SetDone
+      mov    %rcx,%rdi
+      mov    %r8b,%al
+      mov    %al,%ah
+      shrd   $0x10,%eax,%ecx
+      shld   $0x10,%ecx,%eax
+      mov    %rdx,%rcx
+      shr    $0x2,%rcx
+      rep stos %eax,%es:(%rdi)
+      mov    %rdx,%rcx
+      and    $0x3,%rcx
+      rep stos %al,%es:(%rdi)
+SetDone:
+      pop    %rdi
+      retq   
index f07c3d55cc5bf0b7142ef8bd7330982aac8688e4..5af4252c2395ccd6ec12e7f98cb87ca3cd0119ba 100644 (file)
@@ -1,46 +1,46 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2008, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   EfiZeroMemRep4.S\r
-#\r
-# Abstract:\r
-#\r
-#   ZeroMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EfiBind.h>\r
-\r
-    .code: \r
-\r
-.global ASM_PFX(EfiCommonLibZeroMem)\r
-#------------------------------------------------------------------------------\r
-#  VOID\r
-#  EfiCommonLibZeroMem (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Size\r
-#    );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(EfiCommonLibZeroMem):\r
-      push   %rdi\r
-      xor    %rax,%rax\r
-      mov    %rcx,%rdi\r
-      mov    %rdx,%rcx\r
-      shr    $0x2,%rcx\r
-      and    $0x3,%rdx\r
-      rep stos %eax,%es:(%rdi)\r
-      mov    %rdx,%rcx\r
-      rep stos %al,%es:(%rdi)\r
-      pop    %rdi\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2008, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   EfiZeroMemRep4.S
+#
+# Abstract:
+#
+#   ZeroMem function
+#
+# Notes:
+#
+#------------------------------------------------------------------------------
+#include <EfiBind.h>
+
+    .code: 
+
+.globl ASM_PFX(EfiCommonLibZeroMem)
+#------------------------------------------------------------------------------
+#  VOID
+#  EfiCommonLibZeroMem (
+#    IN VOID   *Buffer,
+#    IN UINTN  Size
+#    );
+#------------------------------------------------------------------------------
+ASM_PFX(EfiCommonLibZeroMem):
+      push   %rdi
+      xor    %rax,%rax
+      mov    %rcx,%rdi
+      mov    %rdx,%rcx
+      shr    $0x2,%rcx
+      and    $0x3,%rdx
+      rep stos %eax,%es:(%rdi)
+      mov    %rdx,%rcx
+      rep stos %al,%es:(%rdi)
+      pop    %rdi
       retq   
\ No newline at end of file
index 01eec19f39b6a90567f1e2326649e97a8585d4d4..2766986c6a3e3869867ae3f96d9e95d5c76fc0fc 100644 (file)
-#\r
-# Copyright (c) 2004, Intel Corporation                                                         \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
-# http://opensource.org/licenses/bsd-license.php                                            \r
-#                                                                                           \r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
-# \r
-# Module Name:\r
-# \r
-#    ProcessorAsms.Asm\r
-#\r
-#\r
-#\r
-#include "EfiBind.h"\r
-#------------------------------------------------------------------------------\r
-\r
-  .686P: \r
-  .MMX: \r
-  #.MODEL SMALL\r
-  .CODE: \r
-#------------------------------------------------------------------------------\r
-  \r
-.globl ASM_PFX(TransferControlSetJump)  \r
-.globl ASM_PFX(TransferControlLongJump)\r
-.globl ASM_PFX(SwitchStacks)\r
-.globl ASM_PFX(SwitchIplStacks)\r
-\r
-.equ                            EFI_SUCCESS, 0\r
-.equ                            EFI_WARN_RETURN_FROM_LONG_JUMP, 5\r
-\r
-#\r
-# typedef struct {\r
-#  UINT32  ebx;\r
-#  UINT32  esi;\r
-#  UINT32  edi;\r
-#  UINT32  ebp;\r
-#  UINT32  esp;\r
-#  UINT32  eip;\r
-#} EFI_JUMP_BUFFER;\r
-#\r
-\r
-#typedef \r
-#EFI_STATUS\r
-#(EFIAPI *EFI_PEI_TRANSFER_CONTROL_SET_JUMP) (\r
-#  IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL  *This,\r
-#  OUT EFI_JUMP_BUFFER                   *Context\r
-#  );\r
-#\r
-#Routine Description:\r
-#\r
-#  This routine implements the IA32 variant of the SetJump call.  Its\r
-#  responsibility is to store system state information for a possible\r
-#  subsequent LongJump.\r
-#\r
-#Arguments:\r
-#\r
-#  Pointer to CPU context save buffer.\r
-#\r
-#Returns:\r
-#\r
-#  EFI_SUCCESS\r
-#\r
-ASM_PFX(TransferControlSetJump):\r
-  push   %ebp\r
-  mov    %esp,%ebp\r
-  mov    0x8(%ebp),%eax\r
-  mov    0xc(%ebp),%ecx\r
-  mov    %ebx,(%ecx)\r
-  mov    %esi,0x4(%ecx)\r
-  mov    %edi,0x8(%ecx)\r
-  mov    0x0(%ebp),%eax\r
-  mov    %eax,0xc(%ecx)\r
-  lea    0x4(%ebp),%eax\r
-  mov    %eax,0x10(%ecx)\r
-  mov    0x4(%ebp),%eax\r
-  mov    %eax,0x14(%ecx)\r
-  mov    $0x0,%eax\r
-  leave  \r
-  ret    \r
-\r
-#typedef \r
-#EFI_STATUS\r
-#(EFIAPI *EFI_PEI_TRANSFER_CONTROL_LONG_JUMP) (\r
-#  IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL  *This,\r
-#  IN EFI_JUMP_BUFFER                    *Context\r
-#  );\r
-#\r
-# Routine Description:\r
-# \r
-#  This routine implements the IA32 variant of the LongJump call.  Its\r
-#  responsibility is restore the system state to the Context Buffer and\r
-#  pass control back.\r
-#\r
-# Arguments:\r
-# \r
-#  Pointer to CPU context save buffer.\r
-#\r
-# Returns:\r
-#\r
-#  EFI_WARN_RETURN_FROM_LONG_JUMP\r
-#\r
-\r
-ASM_PFX(TransferControlLongJump):\r
-  push   %ebp\r
-  mov    %esp,%ebp\r
-  push   %ebx\r
-  push   %esi\r
-  push   %edi\r
-  mov    0x8(%ebp),%eax\r
-  mov    $0x5,%eax\r
-  mov    0xc(%ebp),%ecx\r
-  mov    (%ecx),%ebx\r
-  mov    0x4(%ecx),%esi\r
-  mov    0x8(%ecx),%edi\r
-  mov    0xc(%ecx),%ebp\r
-  mov    0x10(%ecx),%esp\r
-  add    $0x4,%esp\r
-  jmp    *0x14(%ecx)\r
-  mov    $0x5,%eax\r
-  pop    %edi\r
-  pop    %esi\r
-  pop    %ebx\r
-  leave  \r
-  ret    \r
-\r
-#\r
-# Routine Description:\r
-#       This allows the caller to switch the stack and goes to the new entry point\r
-#\r
-# Arguments:\r
-#       EntryPoint      - Pointer to the location to enter\r
-#       Parameter       - Parameter to pass in\r
-#       NewStack        - New Location of the stack\r
-#       NewBsp          - New BSP\r
-#\r
-# Returns:\r
-#\r
-#       Nothing. Goes to the Entry Point passing in the new parameters\r
-#\r
-#SwitchStacks    PROC  C \\r
-#  EntryPoint:PTR DWORD, \\r
-#  Parameter:DWORD, \\r
-#  NewStack:PTR DWORD, \\r
-#  NewBsp:PTR DWORD\r
-ASM_PFX(SwitchStacks):\r
-  push   %ebp\r
-  mov    %esp,%ebp\r
-  push   %ebx\r
-  mov    0x14(%ebp),%eax\r
-  mov    0xc(%ebp),%ebx\r
-  mov    0x8(%ebp),%ecx\r
-  mov    0x10(%ebp),%eax\r
-  mov    %eax,%esp\r
-  push   %ebx\r
-  push   $0x0\r
-  jmp    *%ecx\r
-  pop    %ebx\r
-  leave  \r
-  ret    \r
-\r
-\r
-\r
-\r
-#\r
-# Routine Description:\r
-#       This allows the caller to switch the stack and goes to the new entry point\r
-#\r
-# Arguments:\r
-#       EntryPoint              - Pointer to the location to enter\r
-#       Parameter1/Parameter2   - Parameter to pass in\r
-#       NewStack                - New Location of the stack\r
-#       NewBsp                  - New BSP\r
-#\r
-# Returns:\r
-#\r
-#       Nothing. Goes to the Entry Point passing in the new parameters\r
-#\r
-#SwitchIplStacks PROC  C \\r
-#  EntryPoint:PTR DWORD, \\r
-#  Parameter1:DWORD, \\r
-#  Parameter2:DWORD, \\r
-#  NewStack:PTR DWORD, \\r
-#  NewBsp:PTR DWORD\r
-ASM_PFX(SwitchIplStacks):\r
-  push   %ebp\r
-  mov    %esp,%ebp\r
-  push   %ebx\r
-  mov    0x18(%ebp),%eax\r
-  mov    0xc(%ebp),%ebx\r
-  mov    0x10(%ebp),%edx\r
-  mov    0x8(%ebp),%ecx\r
-  mov    0x14(%ebp),%eax\r
-  mov    %eax,%esp\r
-  push   %edx\r
-  push   %ebx\r
-  call   *%ecx\r
-  pop    %ebx\r
-  leave  \r
-  ret    \r
-\r
-#SwitchIplStacks ENDP\r
-\r
-\r
-\r
+#
+# Copyright (c) 2004, Intel Corporation                                                         
+# All rights reserved. This program and the accompanying materials                          
+# are licensed and made available under the terms and conditions of the BSD License         
+# which accompanies this distribution.  The full text of the license may be found at        
+# http://opensource.org/licenses/bsd-license.php                                            
+#                                                                                           
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+# 
+# Module Name:
+# 
+#    ProcessorAsms.Asm
+#
+#
+#
+#include "EfiBind.h"
+#------------------------------------------------------------------------------
+
+  .686P: 
+  .MMX: 
+  #.MODEL SMALL
+  .CODE: 
+#------------------------------------------------------------------------------
+  
+.globl ASM_PFX(TransferControlSetJump)  
+.globl ASM_PFX(TransferControlLongJump)
+.globl ASM_PFX(SwitchStacks)
+.globl ASM_PFX(SwitchIplStacks)
+
+#define EFI_SUCCESS                     0
+#define EFI_WARN_RETURN_FROM_LONG_JUMP  5
+
+#
+# typedef struct {
+#  UINT32  ebx;
+#  UINT32  esi;
+#  UINT32  edi;
+#  UINT32  ebp;
+#  UINT32  esp;
+#  UINT32  eip;
+#} EFI_JUMP_BUFFER;
+#
+
+#typedef 
+#EFI_STATUS
+#(EFIAPI *EFI_PEI_TRANSFER_CONTROL_SET_JUMP) (
+#  IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL  *This,
+#  OUT EFI_JUMP_BUFFER                   *Context
+#  );
+#
+#Routine Description:
+#
+#  This routine implements the IA32 variant of the SetJump call.  Its
+#  responsibility is to store system state information for a possible
+#  subsequent LongJump.
+#
+#Arguments:
+#
+#  Pointer to CPU context save buffer.
+#
+#Returns:
+#
+#  EFI_SUCCESS
+#
+ASM_PFX(TransferControlSetJump):
+  push   %ebp
+  mov    %esp,%ebp
+  mov    0x8(%ebp),%eax
+  mov    0xc(%ebp),%ecx
+  mov    %ebx,(%ecx)
+  mov    %esi,0x4(%ecx)
+  mov    %edi,0x8(%ecx)
+  mov    0x0(%ebp),%eax
+  mov    %eax,0xc(%ecx)
+  lea    0x4(%ebp),%eax
+  mov    %eax,0x10(%ecx)
+  mov    0x4(%ebp),%eax
+  mov    %eax,0x14(%ecx)
+  mov    $0x0,%eax
+  leave  
+  ret    
+
+#typedef 
+#EFI_STATUS
+#(EFIAPI *EFI_PEI_TRANSFER_CONTROL_LONG_JUMP) (
+#  IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL  *This,
+#  IN EFI_JUMP_BUFFER                    *Context
+#  );
+#
+# Routine Description:
+# 
+#  This routine implements the IA32 variant of the LongJump call.  Its
+#  responsibility is restore the system state to the Context Buffer and
+#  pass control back.
+#
+# Arguments:
+# 
+#  Pointer to CPU context save buffer.
+#
+# Returns:
+#
+#  EFI_WARN_RETURN_FROM_LONG_JUMP
+#
+
+ASM_PFX(TransferControlLongJump):
+  push   %ebp
+  mov    %esp,%ebp
+  push   %ebx
+  push   %esi
+  push   %edi
+  mov    0x8(%ebp),%eax
+  mov    $0x5,%eax
+  mov    0xc(%ebp),%ecx
+  mov    (%ecx),%ebx
+  mov    0x4(%ecx),%esi
+  mov    0x8(%ecx),%edi
+  mov    0xc(%ecx),%ebp
+  mov    0x10(%ecx),%esp
+  add    $0x4,%esp
+  jmp    *0x14(%ecx)
+  mov    $0x5,%eax
+  pop    %edi
+  pop    %esi
+  pop    %ebx
+  leave  
+  ret    
+
+#
+# Routine Description:
+#       This allows the caller to switch the stack and goes to the new entry point
+#
+# Arguments:
+#       EntryPoint      - Pointer to the location to enter
+#       Parameter       - Parameter to pass in
+#       NewStack        - New Location of the stack
+#       NewBsp          - New BSP
+#
+# Returns:
+#
+#       Nothing. Goes to the Entry Point passing in the new parameters
+#
+#SwitchStacks    PROC  C \
+#  EntryPoint:PTR DWORD, \
+#  Parameter:DWORD, \
+#  NewStack:PTR DWORD, \
+#  NewBsp:PTR DWORD
+ASM_PFX(SwitchStacks):
+  push   %ebp
+  mov    %esp,%ebp
+  push   %ebx
+  mov    0x14(%ebp),%eax
+  mov    0xc(%ebp),%ebx
+  mov    0x8(%ebp),%ecx
+  mov    0x10(%ebp),%eax
+  mov    %eax,%esp
+  push   %ebx
+  push   $0x0
+  jmp    *%ecx
+  pop    %ebx
+  leave  
+  ret    
+
+
+
+
+#
+# Routine Description:
+#       This allows the caller to switch the stack and goes to the new entry point
+#
+# Arguments:
+#       EntryPoint              - Pointer to the location to enter
+#       Parameter1/Parameter2   - Parameter to pass in
+#       NewStack                - New Location of the stack
+#       NewBsp                  - New BSP
+#
+# Returns:
+#
+#       Nothing. Goes to the Entry Point passing in the new parameters
+#
+#SwitchIplStacks PROC  C \
+#  EntryPoint:PTR DWORD, \
+#  Parameter1:DWORD, \
+#  Parameter2:DWORD, \
+#  NewStack:PTR DWORD, \
+#  NewBsp:PTR DWORD
+ASM_PFX(SwitchIplStacks):
+  push   %ebp
+  mov    %esp,%ebp
+  push   %ebx
+  mov    0x18(%ebp),%eax
+  mov    0xc(%ebp),%ebx
+  mov    0x10(%ebp),%edx
+  mov    0x8(%ebp),%ecx
+  mov    0x14(%ebp),%eax
+  mov    %eax,%esp
+  push   %edx
+  push   %ebx
+  call   *%ecx
+  pop    %ebx
+  leave  
+  ret    
+
+#SwitchIplStacks ENDP
+
+
+
index 59107f0aee4d387a5ea70fe922bcd714b0738ed1..b2a242bff91c38f1dd0930b9adfb0863a5a3a2ea 100644 (file)
@@ -46,7 +46,7 @@
   .section  .rtcode,  "ax", "progbits"\r
   .align 32\r
   .type  RtPioICacheFlush#  ,@function \r
-        .global RtPioICacheFlush#\r
+        .globl RtPioICacheFlush#\r
 // Function compile flags: /Ogsy\r
   .section  .rtcode\r
 \r
index 48e4b19c8811aabe38e442e1c0ef7499682fc5e0..543bed9fd13f261be462d6a03915a5ae6e39f0e1 100644 (file)
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2008, Intel Corporation                                                         \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
-# http://opensource.org/licenses/bsd-license.php                                            \r
-#                                                                                           \r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
-# \r
-# Module Name:\r
-#   ProcessorAsms.S\r
-#\r
-# Abstract:\r
-#   This is separated from processor.c to allow this functions to be built with /O1\r
-#\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EfiBind.h>\r
-\r
-    .text\r
-\r
-.global ASM_PFX(SwitchStacks)\r
-.global ASM_PFX(TransferControlSetJump)\r
-.global ASM_PFX(TransferControlLongJump)\r
-\r
-#\r
-# Routine Description:\r
-#   This allows the caller to switch the stack and goes to the new entry point\r
-#\r
-# Arguments:\r
-#   EntryPoint      - Pointer to the location to enter // rcx\r
-#   Parameter       - Parameter to pass in             // rdx\r
-#   NewStack        - New Location of the stack        // r8\r
-#   NewBsp          - New BSP                          // r9 - not used\r
-#\r
-# Returns:\r
-#   Nothing. Goes to the Entry Point passing in the new parameters\r
-#\r
-ASM_PFX(SwitchStacks):\r
-\r
-    # Adjust stack for\r
-    #   1) leave 4 registers space\r
-    #   2) let it 16 bytes aligned after call\r
-    sub    $0x20,%r8\r
-    and    -0x10,%r8w   # do not assume 16 bytes aligned\r
-\r
-       mov    %r8,%rsp\r
-       mov    %rcx,%r10\r
-       mov    %rdx,%rcx\r
-       callq  *%r10\r
-\r
- #\r
- # no ret as we have a new stack and we jumped to the new location\r
- #     \r
-    ret\r
-\r
-#SwitchStacks ENDP\r
-\r
-\r
-.equ                            EFI_SUCCESS, 0\r
-.equ                            EFI_WARN_RETURN_FROM_LONG_JUMP, 5\r
-\r
-#\r
-#Routine Description:\r
-#\r
-#  This routine implements the x64 variant of the SetJump call.  Its\r
-#  responsibility is to store system state information for a possible\r
-#  subsequent LongJump.\r
-#\r
-#Arguments:\r
-#\r
-#  Pointer to CPU context save buffer.\r
-#\r
-#Returns:\r
-#\r
-#  EFI_SUCCESS\r
-#\r
-# EFI_STATUS\r
-# EFIAPI\r
-# TransferControlLongJump (\r
-#   IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL  *This,\r
-#   IN EFI_JUMP_BUFFER                    *Jump\r
-#   );\r
-#\r
-# rcx - *This\r
-# rdx - JumpBuffer\r
-#\r
-ASM_PFX(TransferControlSetJump):\r
-      mov    %rbx,(%rdx)\r
-      mov    %rsp,0x8(%rdx)\r
-      mov    %rbp,0x10(%rdx)\r
-      mov    %rdi,0x18(%rdx)\r
-      mov    %rsi,0x20(%rdx)\r
-      mov    %r10,0x28(%rdx)\r
-      mov    %r11,0x30(%rdx)\r
-      mov    %r12,0x38(%rdx)\r
-      mov    %r13,0x40(%rdx)\r
-      mov    %r14,0x48(%rdx)\r
-      mov    %r15,0x50(%rdx)\r
-      mov    (%rsp),%rax\r
-      mov    %rax,0x58(%rdx)\r
-      mov    $0x0,%rax\r
-      retq   \r
-\r
-\r
-#\r
-# EFI_STATUS\r
-# EFIAPI\r
-# TransferControlLongJump (\r
-#   IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL  *This,  // rcx\r
-#   IN EFI_JUMP_BUFFER                    *Jump   // rdx\r
-#   );\r
-#\r
-#\r
-ASM_PFX(TransferControlLongJump):\r
-  # set return from SetJump to EFI_WARN_RETURN_FROM_LONG_JUMP\r
-      mov    $0x5,%rax\r
-      mov    (%rdx),%rbx\r
-      mov    0x8(%rdx),%rsp\r
-      mov    0x10(%rdx),%rbp\r
-      mov    0x18(%rdx),%rdi\r
-      mov    0x20(%rdx),%rsi\r
-      mov    0x28(%rdx),%r10\r
-      mov    0x30(%rdx),%r11\r
-      mov    0x38(%rdx),%r12\r
-      mov    0x40(%rdx),%r13\r
-      mov    0x48(%rdx),%r14\r
-      mov    0x50(%rdx),%r15\r
-      add    $0x8,%rsp\r
-      jmpq   *0x58(%rdx)\r
-      mov    $0x5,%rax\r
-      retq   \r
-\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2008, Intel Corporation                                                         
+# All rights reserved. This program and the accompanying materials                          
+# are licensed and made available under the terms and conditions of the BSD License         
+# which accompanies this distribution.  The full text of the license may be found at        
+# http://opensource.org/licenses/bsd-license.php                                            
+#                                                                                           
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+# 
+# Module Name:
+#   ProcessorAsms.S
+#
+# Abstract:
+#   This is separated from processor.c to allow this functions to be built with /O1
+#
+#
+#------------------------------------------------------------------------------
+#include <EfiBind.h>
+
+    .text
+
+.globl ASM_PFX(SwitchStacks)
+.globl ASM_PFX(TransferControlSetJump)
+.globl ASM_PFX(TransferControlLongJump)
+
+#
+# Routine Description:
+#   This allows the caller to switch the stack and goes to the new entry point
+#
+# Arguments:
+#   EntryPoint      - Pointer to the location to enter // rcx
+#   Parameter       - Parameter to pass in             // rdx
+#   NewStack        - New Location of the stack        // r8
+#   NewBsp          - New BSP                          // r9 - not used
+#
+# Returns:
+#   Nothing. Goes to the Entry Point passing in the new parameters
+#
+ASM_PFX(SwitchStacks):
+
+    # Adjust stack for
+    #   1) leave 4 registers space
+    #   2) let it 16 bytes aligned after call
+    sub    $0x20,%r8
+    and    -0x10,%r8w   # do not assume 16 bytes aligned
+
+       mov    %r8,%rsp
+       mov    %rcx,%r10
+       mov    %rdx,%rcx
+       callq  *%r10
+
+ #
+ # no ret as we have a new stack and we jumped to the new location
+ #     
+    ret
+
+#SwitchStacks ENDP
+
+
+.equ                            EFI_SUCCESS, 0
+.equ                            EFI_WARN_RETURN_FROM_LONG_JUMP, 5
+
+#
+#Routine Description:
+#
+#  This routine implements the x64 variant of the SetJump call.  Its
+#  responsibility is to store system state information for a possible
+#  subsequent LongJump.
+#
+#Arguments:
+#
+#  Pointer to CPU context save buffer.
+#
+#Returns:
+#
+#  EFI_SUCCESS
+#
+# EFI_STATUS
+# EFIAPI
+# TransferControlLongJump (
+#   IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL  *This,
+#   IN EFI_JUMP_BUFFER                    *Jump
+#   );
+#
+# rcx - *This
+# rdx - JumpBuffer
+#
+ASM_PFX(TransferControlSetJump):
+      mov    %rbx,(%rdx)
+      mov    %rsp,0x8(%rdx)
+      mov    %rbp,0x10(%rdx)
+      mov    %rdi,0x18(%rdx)
+      mov    %rsi,0x20(%rdx)
+      mov    %r10,0x28(%rdx)
+      mov    %r11,0x30(%rdx)
+      mov    %r12,0x38(%rdx)
+      mov    %r13,0x40(%rdx)
+      mov    %r14,0x48(%rdx)
+      mov    %r15,0x50(%rdx)
+      mov    (%rsp),%rax
+      mov    %rax,0x58(%rdx)
+      mov    $0x0,%rax
+      retq   
+
+
+#
+# EFI_STATUS
+# EFIAPI
+# TransferControlLongJump (
+#   IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL  *This,  // rcx
+#   IN EFI_JUMP_BUFFER                    *Jump   // rdx
+#   );
+#
+#
+ASM_PFX(TransferControlLongJump):
+  # set return from SetJump to EFI_WARN_RETURN_FROM_LONG_JUMP
+      mov    $0x5,%rax
+      mov    (%rdx),%rbx
+      mov    0x8(%rdx),%rsp
+      mov    0x10(%rdx),%rbp
+      mov    0x18(%rdx),%rdi
+      mov    0x20(%rdx),%rsi
+      mov    0x28(%rdx),%r10
+      mov    0x30(%rdx),%r11
+      mov    0x38(%rdx),%r12
+      mov    0x40(%rdx),%r13
+      mov    0x48(%rdx),%r14
+      mov    0x50(%rdx),%r15
+      add    $0x8,%rsp
+      jmpq   *0x58(%rdx)
+      mov    $0x5,%rax
+      retq   
+
index 4a2d63a7fbd3214080522a59e248702fdd5986ed..fcbf2bacf7258e0539d70bbe7f32a1d00c1702a2 100644 (file)
@@ -1,78 +1,78 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2008, Intel Corporation                                                         \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
-# http://opensource.org/licenses/bsd-license.php                                            \r
-#                                                                                           \r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.     \r
-#\r
-# Module Name:\r
-#\r
-#   SupportItpDebug.S\r
-# \r
-# Abstract:\r
-# \r
-#   This is the code for debuging X64, to add a break hook at loading every module\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EfiBind.h>\r
-\r
-  .text\r
-\r
-.global ASM_PFX(AsmEfiSetBreakSupport)\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID\r
-#  AsmEfiSetBreakSupport (\r
-#    IN UINTN  LoadAddr    // rcx\r
-#    )\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_PFX(AsmEfiSetBreakSupport):\r
-\r
-    movw $60000, %dx\r
-    outl %eax, %dx\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    nop\r
-    ret\r
-\r
-\r
-\r
-\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2008, Intel Corporation                                                         
+# All rights reserved. This program and the accompanying materials                          
+# are licensed and made available under the terms and conditions of the BSD License         
+# which accompanies this distribution.  The full text of the license may be found at        
+# http://opensource.org/licenses/bsd-license.php                                            
+#                                                                                           
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.     
+#
+# Module Name:
+#
+#   SupportItpDebug.S
+# 
+# Abstract:
+# 
+#   This is the code for debuging X64, to add a break hook at loading every module
+#
+#------------------------------------------------------------------------------
+#include <EfiBind.h>
+
+  .text
+
+.globl ASM_PFX(AsmEfiSetBreakSupport)
+
+#------------------------------------------------------------------------------
+#  VOID
+#  AsmEfiSetBreakSupport (
+#    IN UINTN  LoadAddr    // rcx
+#    )
+#------------------------------------------------------------------------------
+
+ASM_PFX(AsmEfiSetBreakSupport):
+
+    movw $60000, %dx
+    outl %eax, %dx
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    nop
+    ret
+
+
+
+
index 8ed1a50cc0a615c86b6986f3a7707519a0b9b48a..289dbe591a3ba4aafd73ec3c229eb424e9dc9e37 100644 (file)
@@ -1,61 +1,61 @@
-#/*++\r
-#\r
-#Copyright (c) 2008, Intel Corporation                                                         \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
-#http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          #\r
-#THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-#WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
-#\r
-#Module Name:\r
-#\r
-    #CpuFlushCache.c\r
-#\r
-#Abstract:\r
-#\r
- #Cpu Flush Cache Function.\r
-#\r
-#--*/\r
-#---------------------------------------------------------------------------\r
-#include <EfiBind.h>\r
-\r
-    .586p: \r
-    #.MODEL flat,C\r
-    .code: \r
-\r
-#---------------------------------------------------------------------------\r
-.global ASM_PFX(EfiCpuFlushCache)\r
-\r
-#\r
-#//\r
-#// Cache Flush Routine.\r
-#//\r
-#EFI_STATUS\r
-#EfiCpuFlushCache (\r
-  #IN EFI_PHYSICAL_ADDRESS          Start,\r
-#  IN UINT64                        Length\r
-  #)\r
-#/*++\r
-#\r
-#Routine Description:\r
-#\r
-  #Flush cache with specified range.\r
-#\r
-#Arguments:\r
-#\r
-  #Start   - Start address\r
-#  Length  - Length in bytes\r
-#\r
-#Returns:\r
-#\r
-  #Status code\r
-#  \r
-  #EFI_SUCCESS - success\r
-#\r
-#--*/\r
-ASM_PFX(EfiCpuFlushCache):\r
-    wbinvd\r
-    xorl                    %eax, %eax\r
-    ret\r
+#/*++
+#
+#Copyright (c) 2008, Intel Corporation                                                         
+#All rights reserved. This program and the accompanying materials                          
+#are licensed and made available under the terms and conditions of the BSD License         
+#which accompanies this distribution.  The full text of the license may be found at        
+#http://opensource.org/licenses/bsd-license.php                                            
+                                                                                          #
+#THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
+#WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+#
+#Module Name:
+#
+    #CpuFlushCache.c
+#
+#Abstract:
+#
+ #Cpu Flush Cache Function.
+#
+#--*/
+#---------------------------------------------------------------------------
+#include <EfiBind.h>
+
+    .586p: 
+    #.MODEL flat,C
+    .code: 
+
+#---------------------------------------------------------------------------
+.globl ASM_PFX(EfiCpuFlushCache)
+
+#
+#//
+#// Cache Flush Routine.
+#//
+#EFI_STATUS
+#EfiCpuFlushCache (
+  #IN EFI_PHYSICAL_ADDRESS          Start,
+#  IN UINT64                        Length
+  #)
+#/*++
+#
+#Routine Description:
+#
+  #Flush cache with specified range.
+#
+#Arguments:
+#
+  #Start   - Start address
+#  Length  - Length in bytes
+#
+#Returns:
+#
+  #Status code
+#  
+  #EFI_SUCCESS - success
+#
+#--*/
+ASM_PFX(EfiCpuFlushCache):
+    wbinvd
+    xorl                    %eax, %eax
+    ret
index 92f35ccb0505eea0a858fb97cae8df9ff160c1d6..ebbbf164777f9687d233fead529a086ff4022027 100644 (file)
@@ -26,7 +26,7 @@
 //\r
 // Exports\r
 //\r
-.global GetEsalEntryPoint\r
+.globl GetEsalEntryPoint\r
 \r
 \r
 //-----------------------------------------------------------------------------\r
index 31bc7c5a823ac4c1a53d4bc0155a4f06f96eebb8..b43c98fd0cde8d49bd321b46cbd518cd4a4b15fc 100644 (file)
@@ -1,37 +1,37 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2008, Intel Corporation\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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   RuntimeLibAsm.S\r
-#\r
-# Abstract:\r
-#\r
-#\r
-#------------------------------------------------------------------------------\r
-#include <EfiBind.h>\r
-\r
-.text\r
-\r
-.global ASM_PFX(EfiCpuFlushCache)\r
-#------------------------------------------------------------------------------\r
-#EFI_STATUS\r
-#EfiCpuFlushCache (\r
-#  IN EFI_PHYSICAL_ADDRESS          Start,\r
-#  IN UINT64                        Length\r
-#  );\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_PFX(EfiCpuFlushCache):\r
-    wbinvd\r
-    mov $0, %rax\r
-    ret\r
-\r
+#------------------------------------------------------------------------------
+#
+# Copyright (c) 2008, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+# Module Name:
+#
+#   RuntimeLibAsm.S
+#
+# Abstract:
+#
+#
+#------------------------------------------------------------------------------
+#include <EfiBind.h>
+
+.text
+
+.globl ASM_PFX(EfiCpuFlushCache)
+#------------------------------------------------------------------------------
+#EFI_STATUS
+#EfiCpuFlushCache (
+#  IN EFI_PHYSICAL_ADDRESS          Start,
+#  IN UINT64                        Length
+#  );
+#------------------------------------------------------------------------------
+
+ASM_PFX(EfiCpuFlushCache):
+    wbinvd
+    mov $0, %rax
+    ret
+
index 640f07a1af6cfabc3c5c413edb05e580ffb25e70..704bbef3879e01aa98bacb2ef7610a9676c28a6f 100644 (file)
@@ -73,7 +73,7 @@ ASM_PFX(Thunk16):
     pop    %ecx\r
     rep movsl %ds:(%esi),%es:(%edi)   #; copy context to 16-bit stack\r
     pop    %ebx                       #; ebx <- 16-bit stack offset\r
-    mov    $L_Label1,%eax\r
+    mov    $L_Lable1,%eax\r
     stos   %eax,%es:(%edi)\r
     movl   %cs,%eax\r
     stos   %ax,%es:(%edi)\r
index 60ecdb7d25cb2286dfbba3131e59686b244c92c4..032a98b7d454199f9f5063fc081a254fba4732ec 100644 (file)
@@ -1,48 +1,48 @@
-#*****************************************************************************\r
-#*\r
-#*   Copyright (c) 2008, Intel Corporation                                                         \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
-#*   http://opensource.org/licenses/bsd-license.php                                            \r
-#*                                                                                             \r
-#*   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-#*   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
-#*   \r
-#*   Module Name:\r
-#*\r
-#*    Fx.S\r
-#*  \r
-#*   Abstract:\r
-#*  \r
-#*    AsmFxRestore and AsmFxSave function\r
-#*  \r
-#*****************************************************************************\r
-#include <EfiBind.h>\r
-\r
-.global ASM_PFX(AsmFxSave)\r
-.global ASM_PFX(AsmFxRestore)\r
-\r
-    .text\r
-\r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# AsmFxSave (\r
-#   OUT IA32_FX_BUFFER *Buffer\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(AsmFxSave):\r
-    fxsave (%rcx)\r
-    retq\r
-    \r
-#------------------------------------------------------------------------------\r
-# VOID\r
-# AsmFxRestore (\r
-#   IN CONST IA32_FX_BUFFER *Buffer\r
-#   );\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_PFX(AsmFxRestore):\r
-    fxrstor (%rcx)\r
-    retq\r
+#*****************************************************************************
+#*
+#*   Copyright (c) 2008, Intel Corporation                                                         
+#*   All rights reserved. This program and the accompanying materials                          
+#*   are licensed and made available under the terms and conditions of the BSD License         
+#*   which accompanies this distribution.  The full text of the license may be found at        
+#*   http://opensource.org/licenses/bsd-license.php                                            
+#*                                                                                             
+#*   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
+#*   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+#*   
+#*   Module Name:
+#*
+#*    Fx.S
+#*  
+#*   Abstract:
+#*  
+#*    AsmFxRestore and AsmFxSave function
+#*  
+#*****************************************************************************
+#include <EfiBind.h>
+
+.globl ASM_PFX(AsmFxSave)
+.globl ASM_PFX(AsmFxRestore)
+
+    .text
+
+#------------------------------------------------------------------------------
+# VOID
+# AsmFxSave (
+#   OUT IA32_FX_BUFFER *Buffer
+#   );
+#------------------------------------------------------------------------------
+ASM_PFX(AsmFxSave):
+    fxsave (%rcx)
+    retq
+    
+#------------------------------------------------------------------------------
+# VOID
+# AsmFxRestore (
+#   IN CONST IA32_FX_BUFFER *Buffer
+#   );
+#------------------------------------------------------------------------------
+
+ASM_PFX(AsmFxRestore):
+    fxrstor (%rcx)
+    retq
     
\ No newline at end of file