vkernel64 - Fix pmap panic
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 28 Nov 2014 06:57:36 +0000 (22:57 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 28 Nov 2014 06:57:36 +0000 (22:57 -0800)
commit685f4bf52c55bbbb55a83a75bf706e112a862dec
tree713a7705aa1b4422aae3bc1439eccb9c8d9c5820
parenteb12d1cc4f42160b37042798ebd538252d45641b
vkernel64 - Fix pmap panic

* Fix a pmap panic complaining about the pm_active cpumask not being zero
  when the pmap is released/destroyed.

* The vkernel64 swtch code was improperly setting the active bits from
  the gd_other_cpus field instead of the gd_cpumask field, which wound
  up setting lots of bits instead of the one bit we wanted to set.

* Long-known bug was difficult to reproduce consistently enough to
  locate until Robert found a quick way.

Reproduced-by: Robert Garrett
sys/platform/vkernel64/platform/pmap.c
sys/platform/vkernel64/x86_64/swtch.s