sys_halt_core() and an idle process
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 22 Apr 2010 00:16:46 +0000 (17:16 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:43 +0000 (17:35 -0700)
commit950605ad3ace50915404ca0b7534cf9a15e942da
tree713a96ab91e5973ec47b3dc55f0f747d5d5da94c
parentfd49a3e14076bbd803beb10123de2185b0310972
sys_halt_core() and an idle process

Schedule the idle process after busybox or whatever, and it will halt
the core for 5 sec and yield.

Note the timer_interrupt() will fire too, and that the syscall takes no
precautions about any outstanding per-core timers.

You need to reinstall your kernel headers.
13 files changed:
kern/arch/i686/apic.c
kern/arch/i686/smp_boot.c
kern/arch/sparc/smp.c
kern/arch/sparc/timer.c
kern/include/ros/bits/syscall.h
kern/include/timing.h
kern/include/trap.h
kern/src/Makefrag
kern/src/kfs.c
kern/src/syscall.c
tests/idle.c [new file with mode: 0644]
user/include/parlib.h
user/parlib/syscall.c