X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FLibrary%2FBaseUefiCpuLib%2FIa32%2FInitializeFpu.asm;h=3c31da98f69910e7388a2c44cfeec55d1b00dbff;hp=55244c72a9ee8e4e5912cd77f8196a365e506cc8;hb=ec51c05936ee46f5a8cc11e3b127e153af3e3943;hpb=989322c384b180520803654acb69f53de83e45d6 diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm b/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm index 55244c72a9..3c31da98f6 100644 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm +++ b/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.asm @@ -1,7 +1,7 @@ ;------------------------------------------------------------------------------ ;* -;* Copyright 2009, Intel Corporation -;* All rights reserved. This program and the accompanying materials +;* Copyright (c) 2009, Intel Corporation. All rights reserved.
+;* This program and the accompanying materials ;* are licensed and made available under the terms and conditions of the BSD License ;* which accompanies this distribution. The full text of the license may be found at ;* http://opensource.org/licenses/bsd-license.php @@ -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