Commit Graph

4 Commits

Author SHA1 Message Date
ad e3b9ca63b1 Mistake in previous - lwp_t *l was not meant to be static. 2020-02-23 22:56:41 +00:00
ad 566d645518 - If concurrent calls to kern_reboot(), only let the first do the deed.
- Don't need kernel_lock for this (either OK, or suspendsched() called).
2020-02-23 20:06:30 +00:00
thorpej 599c240526 - Introduce a new global kernel variable "shutting_down" to indicate that
the system is shutting down or rebooting.
- Set this global in a new function called kern_reboot(), which is currently
  just a basic wrapper around cpu_reboot().
- Call kern_reboot() instead of cpu_reboot() almost everywhere; a few
  places remain where it's still called directly, but those are in early
  pre-main() machdep locations.

Eventually, all of the various cpu_reboot() functions should be re-factored
and common functionality moved to kern_reboot(), but that's for another day.
2020-01-01 22:57:16 +00:00
mrg ca332959c3 retire kern_xxx.c. long live kern_xxx.c.
split it into kern_reboot.c and kern_scdebug.c.  while here,
add my copyright to kern_scdebug.c as it was largely rewritten
for kernhist support.
2018-09-14 01:55:19 +00:00