mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[NTOS]: Make idle loop portable. Can be moved out of /i386 now.
svn path=/trunk/; revision=49486
This commit is contained in:
parent
8a59fecfa5
commit
7642321a2c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue