hat_alloc
struct hat *hat_alloc(struct as *);
as->a_hat = hat_alloc(as); /* create hat for default system mmu */
kas.a_hat = hat_alloc(&kas);