kernel - Fix itimer hard critical section panic
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 8 Nov 2011 00:26:48 +0000 (16:26 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 8 Nov 2011 00:26:48 +0000 (16:26 -0800)
commit898e34b34c5c2a3f944073b36861e2247c7fed58
tree8e1d7285417d7efa6bdaf6fec3a7de9208ab1884
parent4e291b37cc42836f0bbcedb67aaf25b6c94bab7a
kernel - Fix itimer hard critical section panic

* ksignal() needs per-lwp tokens as well as the process token, the existing
  itimer code only gets the process token.

* Flag the itimer signal and issue the ksignal() in the trap's AST code
  instead of trying to issue it from the hardclock.

Reported-by: swildner
sys/kern/kern_clock.c
sys/kern/kern_time.c
sys/platform/pc32/i386/trap.c
sys/platform/pc64/x86_64/trap.c
sys/platform/vkernel/i386/trap.c
sys/platform/vkernel64/x86_64/trap.c
sys/sys/proc.h