Massive cleanup of SPARC kernel entry code