Added a per-cpu stack
Merge branch 'inthandling'
Clean up some of the kernel calls.

Eliminate pointers up to kernel.