Another mtrace un-bit-rotting tweak

上级 69b12bc9
......@@ -52,8 +52,7 @@ idlebequeath(void)
release(&idlem->heir->lock);
}
static void
void
idleheir(void *x)
{
post_swtch();
......
......@@ -36,6 +36,8 @@ sched(void)
{
extern void threadstub(void);
extern void forkret(void);
extern void idleheir(void *x);
int intena;
#if SPINLOCK_DEBUG
......@@ -86,7 +88,8 @@ sched(void)
next->tsc = rdtsc();
if (next->context->rip != (uptr)forkret &&
next->context->rip != (uptr)threadstub)
next->context->rip != (uptr)threadstub &&
next->context->rip != (uptr)idleheir)
{
mtresume(next);
}
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论