Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/libraries/source/nvtt/src/src/nvcore/Debug.cpp
Show First 20 Lines • Show All 601 Lines • ▼ Show 20 Lines | # elif NV_CPU_X86_64 | ||||
ucontext_t * ucp = (ucontext_t *)secret; | ucontext_t * ucp = (ucontext_t *)secret; | ||||
return (void *) ucp->uc_mcontext->__ss.__rip; | return (void *) ucp->uc_mcontext->__ss.__rip; | ||||
# elif NV_CPU_X86 | # elif NV_CPU_X86 | ||||
ucontext_t * ucp = (ucontext_t *)secret; | ucontext_t * ucp = (ucontext_t *)secret; | ||||
return (void *) ucp->uc_mcontext->__ss.__eip; | return (void *) ucp->uc_mcontext->__ss.__eip; | ||||
# 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->__ss.__pc; | return (void *) ucp->uc_mcontext->__ss.__pc; | ||||
# elif NV_CPU_AARCH64 | |||||
ucontext_t * ucp = (ucontext_t *)secret; | |||||
return (void *) ucp->uc_mcontext->__ss.__pc; | |||||
# else | # else | ||||
# error "Unknown CPU" | # error "Unknown CPU" | ||||
# endif | # endif | ||||
# else | # else | ||||
# if NV_CPU_PPC | # if NV_CPU_PPC | ||||
ucontext_t * ucp = (ucontext_t *)secret; | ucontext_t * ucp = (ucontext_t *)secret; | ||||
return (void *) ucp->uc_mcontext->ss.srr0; | return (void *) ucp->uc_mcontext->ss.srr0; | ||||
# elif NV_CPU_X86 | # elif NV_CPU_X86 | ||||
▲ Show 20 Lines • Show All 661 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator