MFi386: revision 1.506.
This commit is contained in:
parent
3346f3a5cd
commit
880d114c8a
@ -818,6 +818,11 @@ cpu_idle(void)
|
||||
if (procrunnable()) {
|
||||
enable_intr();
|
||||
} else {
|
||||
/*
|
||||
* we must absolutely guarentee that hlt is the
|
||||
* absolute next instruction after sti or we
|
||||
* introduce a timing window.
|
||||
*/
|
||||
__asm __volatile("sti; hlt");
|
||||
}
|
||||
}
|
||||
@ -1759,8 +1764,8 @@ init386(first)
|
||||
*
|
||||
* icu_lock: in order to allow an interrupt to occur in a critical
|
||||
* section, to set pcpu->ipending (etc...) properly, we
|
||||
* must be able to get the icu lock, so it can't be under
|
||||
* witness.
|
||||
* must be able to get the icu lock, so it can't be
|
||||
* under witness.
|
||||
*/
|
||||
mtx_init(&Giant, "Giant", MTX_DEF | MTX_RECURSE);
|
||||
mtx_init(&sched_lock, "sched lock", MTX_SPIN | MTX_RECURSE);
|
||||
|
@ -818,6 +818,11 @@ cpu_idle(void)
|
||||
if (procrunnable()) {
|
||||
enable_intr();
|
||||
} else {
|
||||
/*
|
||||
* we must absolutely guarentee that hlt is the
|
||||
* absolute next instruction after sti or we
|
||||
* introduce a timing window.
|
||||
*/
|
||||
__asm __volatile("sti; hlt");
|
||||
}
|
||||
}
|
||||
@ -1759,8 +1764,8 @@ init386(first)
|
||||
*
|
||||
* icu_lock: in order to allow an interrupt to occur in a critical
|
||||
* section, to set pcpu->ipending (etc...) properly, we
|
||||
* must be able to get the icu lock, so it can't be under
|
||||
* witness.
|
||||
* must be able to get the icu lock, so it can't be
|
||||
* under witness.
|
||||
*/
|
||||
mtx_init(&Giant, "Giant", MTX_DEF | MTX_RECURSE);
|
||||
mtx_init(&sched_lock, "sched lock", MTX_SPIN | MTX_RECURSE);
|
||||
|
Loading…
Reference in New Issue
Block a user