Move some stuff to kernel bootstrap.

Signed-off-by: crynobone <crynobone@gmail.com>