[ros-diffs] [sir_richard] 49486: [NTOS]: Make idle loop portable. Can be moved out of /i386 now.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Fri Nov 5 16:00:06 UTC 2010


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?rev=49486&r1=49485&r2=49486&view=diff
==============================================================================
--- 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




More information about the Ros-diffs mailing list