Author: sir_richard
Date: Fri Nov 5 16:00:05 2010
New Revision: 49486
URL:
http://svn.reactos.org/svn/reactos?rev=49486&view=rev
Log:
[NTOS]: Make idle loop portable. Can be moved out of /i386 now.
Modified:
trunk/reactos/ntoskrnl/ke/i386/thrdini.c
Modified: trunk/reactos/ntoskrnl/ke/i386/thrdini.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/thrdini.c…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/thrdini.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/thrdini.c [iso-8859-1] Fri Nov 5 16:00:05 2010
@@ -258,7 +258,8 @@
/* Initialize the idle loop: disable interrupts */
_enable();
- __asm__("nop; nop");
+ YieldProcessor();
+ YieldProcessor();
_disable();
/* Now loop forever */
@@ -298,7 +299,8 @@
/* We are back in the idle thread -- disable interrupts again */
_enable();
- __asm__("nop");
+ YieldProcessor();
+ YieldProcessor();
_disable();
}
else