]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg BaseLib Ia32 assembly: Specify DWORD sizes
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 25 Jul 2014 01:15:13 +0000 (18:15 -0700)
committerLiming Gao <liming.gao@intel.com>
Tue, 28 Jun 2016 01:48:22 +0000 (09:48 +0800)
NASM wants this code to specify a size.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseLib/Ia32/CpuId.asm
MdePkg/Library/BaseLib/Ia32/CpuIdEx.asm
MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm
MdePkg/Library/BaseLib/Ia32/SetJump.asm

index 0141cb2ca4635424927e247ebdd081d113843e16..a1a01c060093f82bd9119505949284aca9e774d1 100644 (file)
@@ -52,7 +52,7 @@ AsmCpuid    PROC    USES    ebx
 @@:\r
     mov     ecx, [ebp + 24]\r
     jecxz   @F\r
-    pop     [ecx]\r
+    pop     DWORD [ecx]\r
 @@:\r
     mov     ecx, [ebp + 28]\r
     jecxz   @F\r
index 504b397f1f68ee9c8f01d17170613a14ea58ed98..9cca11b7523bc540d8a44b752fd0bc69b771a189 100644 (file)
@@ -58,7 +58,7 @@ AsmCpuidEx  PROC    USES    ebx
 @@:\r
     mov     ecx, [ebp + 28]\r
     jecxz   @F\r
-    pop     [ecx]\r
+    pop     DWORD [ecx]\r
 @@:\r
     mov     eax, [ebp + 12]\r
     leave\r
index 5cc1d6baf2cc93a139118ac45f4e6442d4f693c0..9ad340494525c1706688e1967ad7144a6a79f981 100644 (file)
@@ -38,7 +38,7 @@
 ;------------------------------------------------------------------------------\r
 InternalX86EnablePaging64 PROC\r
     cli\r
-    mov     [esp], @F                   ; offset for far retf, seg is the 1st arg\r
+    mov     DWORD PTR [esp], @F         ; offset for far retf, seg is the 1st arg\r
     mov     eax, cr4\r
     or      al, (1 SHL 5)\r
     mov     cr4, eax                    ; enable PAE\r
index 8486b9f5b8c2016d9a8e40bb39098d77b117db88..0bfa404cf4d85c3fa029fbe09b376571ed3d90fd 100644 (file)
@@ -33,7 +33,7 @@ InternalAssertJumpBuffer    PROTO   C
 ;   );\r
 ;------------------------------------------------------------------------------\r
 SetJump     PROC\r
-    push    [esp + 4]\r
+    push    DWORD [esp + 4]\r
     call    InternalAssertJumpBuffer    ; To validate JumpBuffer\r
     pop     ecx\r
     pop     ecx                         ; ecx <- return address\r