From aaff3e2d566064c3288af89f1098f4b50ebc7088 Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Mon, 21 Sep 2009 22:08:44 +0000 Subject: [PATCH] - Use __writeeflags instead of clc to clear the carry flag. svn path=/trunk/; revision=43108 --- reactos/boot/freeldr/freeldr/arch/i386/pcrtc.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/arch/i386/pcrtc.c b/reactos/boot/freeldr/freeldr/arch/i386/pcrtc.c index cafd3883558..b8f2011eb25 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/pcrtc.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/pcrtc.c @@ -19,19 +19,6 @@ #include -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 @@ PcGetTime(VOID) * 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 @@ PcGetTime(VOID) /* 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)