Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/libraries/source/nvtt/src/src/nvcore/Debug.cpp
Show First 20 Lines • Show All 668 Lines • ▼ Show 20 Lines | # elif NV_CPU_PPC | ||||
ucontext_t * ucp = (ucontext_t *)secret; | ucontext_t * ucp = (ucontext_t *)secret; | ||||
return (void *) ucp->uc_mcontext.regs->nip; | return (void *) ucp->uc_mcontext.regs->nip; | ||||
# elif NV_CPU_ARM | # elif NV_CPU_ARM | ||||
ucontext_t * ucp = (ucontext_t *)secret; | ucontext_t * ucp = (ucontext_t *)secret; | ||||
return (void *) ucp->uc_mcontext.arm_pc; | return (void *) ucp->uc_mcontext.arm_pc; | ||||
# elif NV_CPU_AARCH64 | # elif NV_CPU_AARCH64 | ||||
ucontext_t * ucp = (ucontext_t *)secret; | ucontext_t * ucp = (ucontext_t *)secret; | ||||
return (void *) ucp->uc_mcontext.pc; | return (void *) ucp->uc_mcontext.pc; | ||||
# elif NV_CPU_E2K | |||||
ucontext_t * ucp = (ucontext_t *)secret; | |||||
return (void *) ucp->uc_mcontext.cr0_hi; | |||||
# else | # else | ||||
# error "Unknown CPU" | # error "Unknown CPU" | ||||
# endif | # endif | ||||
#endif | #endif | ||||
// How to obtain the instruction pointers in different platforms, from mlton's source code. | // How to obtain the instruction pointers in different platforms, from mlton's source code. | ||||
// http://mlton.org/ | // http://mlton.org/ | ||||
// OpenBSD | // OpenBSD | ||||
▲ Show 20 Lines • Show All 597 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator