diff options
Diffstat (limited to 'UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm')
-rw-r--r-- | UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm b/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm index 55244c72a9..083473311e 100644 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm +++ b/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm @@ -30,15 +30,18 @@ mMmxControlWord DD 01F80h .xmm
.code
-; +;
; Initializes floating point units for requirement of UEFI specification.
;
; This function initializes floating-point control word to 0x027F (all exceptions
; masked,double-precision, round-to-nearest) and multimedia-extensions control word
; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
-; for masked underflow). +; for masked underflow).
;
InitializeFloatingPointUnits PROC PUBLIC
+
+ push ebx
+
;
; Initialize floating point units
;
@@ -67,6 +70,7 @@ InitializeFloatingPointUnits PROC PUBLIC ;
ldmxcsr mMmxControlWord
Done:
+ pop ebx
ret
|