Author: sginsberg Date: Tue Sep 22 00:08:44 2009 New Revision: 43108
URL: http://svn.reactos.org/svn/reactos?rev=43108&view=rev Log: - Use __writeeflags instead of clc to clear the carry flag.
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/pcrtc.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/pcrtc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/i... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/pcrtc.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/pcrtc.c [iso-8859-1] Tue Sep 22 00:08:44 2009 @@ -19,19 +19,6 @@
#include <freeldr.h>
-FORCEINLINE -VOID -ClearCarryFlag(VOID) -{ -#if defined(__GNUC__) - __asm__ ("clc"); -#elif defined(_MSC_VER) - __asm clc; -#else -#error -#endif -} - #define BCD_INT(bcd) (((bcd & 0xf0) >> 4) * 10 + (bcd &0x0f))
TIMEINFO* @@ -44,7 +31,7 @@ * in the Compaq Deskpro EP/SB, leave CF unchanged * if successful, so CF should be cleared before * calling this function. */ - ClearCarryFlag(); + __writeeflags(__readeflags() & ~EFLAGS_CF);
/* Int 1Ah AH=04h * TIME - GET REAL-TIME CLOCK DATE (AT,XT286,PS) @@ -68,7 +55,7 @@
/* Some BIOSes leave CF unchanged if successful, * so CF should be cleared before calling this function. */ - ClearCarryFlag(); + __writeeflags(__readeflags() & ~EFLAGS_CF);
/* Int 1Ah AH=02h * TIME - GET REAL-TIME CLOCK TIME (AT,XT286,PS)