Modify the trapframe sigcontext, ucontext, etc. Add %gs to the trapframe