< prev index next >

src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp

Print this page
rev 7905 : 8074552:  SafeFetch32 and SafeFetchN do not work in error handling
Summary: handle SafeFetch faults in secondary signal handlers
Contributed-by: Thomas Stuefe

*** 349,358 **** --- 349,362 ---- address os::Linux::ucontext_get_pc(ucontext_t* uc) { return (address) SIG_PC((sigcontext*)uc); } + void os::Linux::ucontext_set_pc(ucontext_t* uc, address pc) { + set_cont_address((sigcontext_t*) uc, pc); + } + intptr_t* os::Linux::ucontext_get_sp(ucontext_t *uc) { return (intptr_t*) ((intptr_t)SIG_REGS((sigcontext*)uc).u_regs[CON_O6] + STACK_BIAS); }
< prev index next >