mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:02:59 +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
1 changed files with 4 additions and 2 deletions
|
@ -258,7 +258,8 @@ KiIdleLoop(VOID)
|
||||||
|
|
||||||
/* Initialize the idle loop: disable interrupts */
|
/* Initialize the idle loop: disable interrupts */
|
||||||
_enable();
|
_enable();
|
||||||
__asm__("nop; nop");
|
YieldProcessor();
|
||||||
|
YieldProcessor();
|
||||||
_disable();
|
_disable();
|
||||||
|
|
||||||
/* Now loop forever */
|
/* Now loop forever */
|
||||||
|
@ -298,7 +299,8 @@ KiIdleLoop(VOID)
|
||||||
|
|
||||||
/* We are back in the idle thread -- disable interrupts again */
|
/* We are back in the idle thread -- disable interrupts again */
|
||||||
_enable();
|
_enable();
|
||||||
__asm__("nop");
|
YieldProcessor();
|
||||||
|
YieldProcessor();
|
||||||
_disable();
|
_disable();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue