.. erm, sys/mips/mips/machdep.c: /* * call platform specific code to halt (until next interrupt) for the idle loop */ void cpu_idle(int busy) { KASSERT((mips_rd_status() & MIPS_SR_INT_IE) != 0, ("interrupts disabled in idle process.")); KASSERT((mips_rd_status() & MIPS_INT_MASK) != 0, ("all interrupts masked in idle process.")); if (!busy) { critical_enter(); cpu_idleclock(); } __asm __volatile ("wait"); if (!busy) { cpu_activeclock(); critical_exit(); } } .. does that look right? AdrianReceived on Tue Sep 27 2011 - 01:25:59 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC