bsps/sparc: Reduce copy and paste
sptests/spcontext01: Avoid NULL pointer access