Revision: 16865
          http://sourceforge.net/p/edk2/code/16865
Author:   hwu1225
Date:     2015-02-13 06:25:19 +0000 (Fri, 13 Feb 2015)
Log Message:
-----------
Fix comments error.

(Sync patch r16845 from main trunk.)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <[email protected]>
Reviewed-by: "Rangarajan, Ravi P" <[email protected]>
Reviewed-by: "Ma, Maurice" <[email protected]>

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/16845

Modified Paths:
--------------
    branches/UDK2014.SP1/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.asm
    branches/UDK2014.SP1/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.s

Modified: branches/UDK2014.SP1/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.asm
===================================================================
--- branches/UDK2014.SP1/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.asm    
2015-02-13 06:24:34 UTC (rev 16864)
+++ branches/UDK2014.SP1/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.asm    
2015-02-13 06:25:19 UTC (rev 16865)
@@ -57,19 +57,19 @@
 ;
 LOAD_MMX_EXT MACRO   ReturnAddress, MmxRegister
   mov     esi, ReturnAddress
-  movd    MmxRegister, esi              ; save ReturnAddress into MM7  
+  movd    MmxRegister, esi              ; save ReturnAddress into MMX
 ENDM
 
 CALL_MMX_EXT MACRO   RoutineLabel, MmxRegister
   local   ReturnAddress
   mov     esi, offset ReturnAddress
-  movd    MmxRegister, esi              ; save ReturnAddress into MM7
+  movd    MmxRegister, esi              ; save ReturnAddress into MMX
   jmp     RoutineLabel
 ReturnAddress:
 ENDM
 
 RET_ESI_EXT  MACRO   MmxRegister
-  movd    esi, MmxRegister              ; restore ESP from MM7
+  movd    esi, MmxRegister              ; restore ESP from MMX
   jmp     esi
 ENDM
 
@@ -102,15 +102,15 @@
 ;------------------------------------------------------------------------------
 SecPlatformInitDefault PROC NEAR PUBLIC
    ; Inputs:
-   ;   eax -> Return address
+   ;   mm7 -> Return address
    ; Outputs:
    ;   eax -> 0 - Successful, Non-zero - Failed.
    ; Register Usage:
    ;   eax is cleared and ebp is used for return address.
    ;   All others reserved.
-
+   
    ; Save return address to EBP
-   mov   ebp, eax
+   mov   ebp, mm7
 
    xor   eax, eax
 exit:
@@ -382,7 +382,7 @@
   SAVE_REGS
 
   ;
-  ; Save timestamp into XMM4 & XMM5
+  ; Save timestamp into XMM6
   ;
   rdtsc
   SAVE_EAX

Modified: branches/UDK2014.SP1/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.s
===================================================================
--- branches/UDK2014.SP1/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.s      
2015-02-13 06:24:34 UTC (rev 16864)
+++ branches/UDK2014.SP1/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.s      
2015-02-13 06:25:19 UTC (rev 16865)
@@ -207,7 +207,7 @@
 #------------------------------------------------------------------------------
 # SecPlatformInitDefault
 # Inputs:
-#   eax -> Return address
+#   mm7 -> Return address
 # Outputs:
 #   eax -> 0 - Successful, Non-zero - Failed.
 # Register Usage:
@@ -219,7 +219,7 @@
    #
    # Save return address to EBP
    #
-   movl   %eax, %ebp
+   movd   %mm7, %ebp
    xorl   %eax, %eax
 
 SecPlatformInitDefaultExit:
@@ -532,7 +532,7 @@
   SAVE_REGS
 
   #
-  # Save timestamp into XMM4 & XMM5
+  # Save timestamp into XMM6
   #
   rdtsc
   SAVE_EAX


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to