From 7642321a2c128e5201b71dc7df72ba4ff7d9cf7f Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Fri, 5 Nov 2010 16:00:05 +0000 Subject: [PATCH] [NTOS]: Make idle loop portable. Can be moved out of /i386 now. svn path=/trunk/; revision=49486 --- reactos/ntoskrnl/ke/i386/thrdini.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ke/i386/thrdini.c b/reactos/ntoskrnl/ke/i386/thrdini.c index 2fdcc6505fe..b2a40258936 100644 --- a/reactos/ntoskrnl/ke/i386/thrdini.c +++ b/reactos/ntoskrnl/ke/i386/thrdini.c @@ -258,7 +258,8 @@ KiIdleLoop(VOID) /* Initialize the idle loop: disable interrupts */ _enable(); - __asm__("nop; nop"); + YieldProcessor(); + YieldProcessor(); _disable(); /* Now loop forever */ @@ -298,7 +299,8 @@ KiIdleLoop(VOID) /* We are back in the idle thread -- disable interrupts again */ _enable(); - __asm__("nop"); + YieldProcessor(); + YieldProcessor(); _disable(); } else