]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/EbcDxe/x64/EbcLowLevel.asm
Update to fix minor coding style issues.
[mirror_edk2.git] / MdeModulePkg / Universal / EbcDxe / x64 / EbcLowLevel.asm
index 3262ea93783d2fd7471f45c9f7f2388ef0352028..6741405cbcc68b4b110def084860241a2e587dee 100644 (file)
@@ -1,31 +1,21 @@
+;/** @file\r
+;  \r
+;    This code provides low level routines that support the Virtual Machine.\r
+;    for option ROMs.\r
+;  \r
+;  Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+;  All rights reserved. This program and the accompanying materials\r
+;  are licensed and made available under the terms and conditions of the BSD License\r
+;  which accompanies this distribution.  The full text of the license may be found at\r
+;  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
+;**/\r
+\r
   page    ,132\r
   title   VM ASSEMBLY LANGUAGE ROUTINES\r
-;****************************************************************************\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
-;****************************************************************************\r
-;****************************************************************************\r
-;                                   REV 1.0\r
-;****************************************************************************\r
-;\r
-; Rev  Date      Description\r
-; ---  --------  ------------------------------------------------------------\r
-; 1.0  05/09/12  Initial creation of file.\r
-;\r
-;****************************************************************************\r
-                             \r
-;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r
-; This code provides low level routines that support the Virtual Machine\r
-; for option ROMs. \r
-;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r
 \r
 ;---------------------------------------------------------------------------\r
 ; Equate files needed.\r
@@ -40,10 +30,10 @@ text SEGMENT
 ;****************************************************************************\r
 ; EbcLLCALLEX\r
 ;\r
-; This function is called to execute an EBC CALLEX instruction. \r
+; This function is called to execute an EBC CALLEX instruction.\r
 ; This instruction requires that we thunk out to external native\r
 ; code. For x64, we switch stacks, copy the arguments to the stack\r
-; and jump to the specified function. \r
+; and jump to the specified function.\r
 ; On return, we restore the stack pointer to its original location.\r
 ;\r
 ; Destroys no working registers.\r
@@ -58,7 +48,7 @@ EbcLLCALLEXNative        PROC    PUBLIC
       push   rbx\r
       mov    rbp, rsp\r
       ; Function prolog\r
-      \r
+\r
       ; Copy FuncAddr to a preserved register.\r
       mov    rbx, rcx\r
 \r
@@ -67,9 +57,9 @@ EbcLLCALLEXNative        PROC    PUBLIC
       sub    rsp, r8\r
       mov    rcx, rsp\r
       sub    rsp, 20h\r
-      call   CopyMem      \r
+      call   CopyMem\r
       add    rsp, 20h\r
-      \r
+\r
       ; Considering the worst case, load 4 potiential arguments\r
       ; into registers.\r
       mov    rcx, qword ptr [rsp]\r
@@ -79,7 +69,7 @@ EbcLLCALLEXNative        PROC    PUBLIC
 \r
       ; Now call the external routine\r
       call  rbx\r
-      \r
+\r
       ; Function epilog\r
       mov      rsp, rbp\r
       pop      rbx\r
@@ -92,7 +82,7 @@ EbcLLCALLEXNative    ENDP
 ; Routine Description:\r
 ;   The VM thunk code stuffs an EBC entry point into a processor\r
 ;   register. Since we can't use inline assembly to get it from\r
-;   the interpreter C code, stuff it into the return value \r
+;   the interpreter C code, stuff it into the return value\r
 ;   register and return.\r
 ;\r
 ; Arguments:\r
@@ -108,7 +98,7 @@ EbcLLGetEbcEntryPoint    ENDP
 ;/*++\r
 ;\r
 ;Routine Description:\r
-;  \r
+;\r
 ;  Return the caller's value of the stack pointer.\r
 ;\r
 ;Arguments:\r
@@ -123,7 +113,7 @@ EbcLLGetEbcEntryPoint    ENDP
 ;\r
 ;--*/\r
 \r
-; UINTN EbcLLGetStackPointer()            \r
+; UINTN EbcLLGetStackPointer()\r
 EbcLLGetStackPointer        PROC    PUBLIC\r
     mov    rax, rsp      ; get current stack pointer\r
     ; Stack adjusted by this much when we were called,\r