kernel - Add additional safety assertions in the pmap path
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 04:16:36 +0000 (20:16 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 04:16:36 +0000 (20:16 -0800)
commit993bac4430ff8770419d96bc0356c34ac31501a7
treee4ab0815c3d8f41f46227a04353ee104238f20f9
parent2eddd92745a2bb342357aa35ff7e6a12fb2245cd
kernel - Add additional safety assertions in the pmap path

* Assert additional state is correct in pmap_pinit()

* Assert that the critical section count makes preemption impossible
  in pmap_interlock_wait(), which is called from the depths of swtch.s
  during a thread switch.
sys/platform/pc64/x86_64/pmap.c