kernel - Fix panic() on AMD
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 7 Sep 2017 22:35:54 +0000 (15:35 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 7 Sep 2017 22:35:54 +0000 (15:35 -0700)
commit30c68165c8c5a591e14597bce7bd25f4ecd649e3
tree640b0e54c17d06f0bb36b863ca77957dcb17e89a
parent568c02c60cb736b6dd309ca31d54ab8e4062ce57
kernel - Fix panic() on AMD

* The cpu_smp_stopped() function assumed that cpu_mwait_hints[] exists,
  but it might not (could be NULL).

* Conditionalize to avoid insta-panicing all cpus all at the same time
  when one cpu tries to stop the others during a panic().  This fixes
  panics on AMD cpus.
sys/platform/pc64/x86_64/machdep.c