mirror of https://github.com/acidanthera/audk.git
MdePkg BaseLib Ia32 assembly: Specify DWORD sizes
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>
This commit is contained in:
parent
ef7447bb02
commit
5fe292b42f
|
@ -52,7 +52,7 @@ AsmCpuid PROC USES ebx
|
|||
@@:
|
||||
mov ecx, [ebp + 24]
|
||||
jecxz @F
|
||||
pop [ecx]
|
||||
pop DWORD [ecx]
|
||||
@@:
|
||||
mov ecx, [ebp + 28]
|
||||
jecxz @F
|
||||
|
|
|
@ -58,7 +58,7 @@ AsmCpuidEx PROC USES ebx
|
|||
@@:
|
||||
mov ecx, [ebp + 28]
|
||||
jecxz @F
|
||||
pop [ecx]
|
||||
pop DWORD [ecx]
|
||||
@@:
|
||||
mov eax, [ebp + 12]
|
||||
leave
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
;------------------------------------------------------------------------------
|
||||
InternalX86EnablePaging64 PROC
|
||||
cli
|
||||
mov [esp], @F ; offset for far retf, seg is the 1st arg
|
||||
mov DWORD PTR [esp], @F ; offset for far retf, seg is the 1st arg
|
||||
mov eax, cr4
|
||||
or al, (1 SHL 5)
|
||||
mov cr4, eax ; enable PAE
|
||||
|
|
|
@ -33,7 +33,7 @@ InternalAssertJumpBuffer PROTO C
|
|||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
SetJump PROC
|
||||
push [esp + 4]
|
||||
push DWORD [esp + 4]
|
||||
call InternalAssertJumpBuffer ; To validate JumpBuffer
|
||||
pop ecx
|
||||
pop ecx ; ecx <- return address
|
||||
|
|
Loading…
Reference in New Issue