Armchair quarterbacking here, but from my old copy of linux 3.16, the registers from the windows are named mc_gregs not gregs. The definition of "ucontext_t" is in "linux-source-3.16/arch/sparc/include/uapi/asm/uctx.h". It's also not REG_O6 but MC_O6 apparently.