mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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]
|
mov ecx, [ebp + 24]
|
||||||
jecxz @F
|
jecxz @F
|
||||||
pop [ecx]
|
pop DWORD [ecx]
|
||||||
@@:
|
@@:
|
||||||
mov ecx, [ebp + 28]
|
mov ecx, [ebp + 28]
|
||||||
jecxz @F
|
jecxz @F
|
||||||
|
@ -58,7 +58,7 @@ AsmCpuidEx PROC USES ebx
|
|||||||
@@:
|
@@:
|
||||||
mov ecx, [ebp + 28]
|
mov ecx, [ebp + 28]
|
||||||
jecxz @F
|
jecxz @F
|
||||||
pop [ecx]
|
pop DWORD [ecx]
|
||||||
@@:
|
@@:
|
||||||
mov eax, [ebp + 12]
|
mov eax, [ebp + 12]
|
||||||
leave
|
leave
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
InternalX86EnablePaging64 PROC
|
InternalX86EnablePaging64 PROC
|
||||||
cli
|
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
|
mov eax, cr4
|
||||||
or al, (1 SHL 5)
|
or al, (1 SHL 5)
|
||||||
mov cr4, eax ; enable PAE
|
mov cr4, eax ; enable PAE
|
||||||
|
@ -33,7 +33,7 @@ InternalAssertJumpBuffer PROTO C
|
|||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
SetJump PROC
|
SetJump PROC
|
||||||
push [esp + 4]
|
push DWORD [esp + 4]
|
||||||
call InternalAssertJumpBuffer ; To validate JumpBuffer
|
call InternalAssertJumpBuffer ; To validate JumpBuffer
|
||||||
pop ecx
|
pop ecx
|
||||||
pop ecx ; ecx <- return address
|
pop ecx ; ecx <- return address
|
||||||
|
Loading…
x
Reference in New Issue
Block a user