ucontext
Nick Kostirya
nikolay.kostirya at i11.co
Thu Oct 24 11:11:44 UTC 2019
Hello.
I want to port MLton to ARM.
There are file with access to ucontext_t structure.
static void catcher (__attribute__ ((unused)) int signo,
__attribute__ ((unused)) siginfo_t* info,
void* context) {
ucontext_t* ucp = (ucontext_t*)context;
#if (defined (__x86_64__))
GC_handleSigProf ((code_pointer) ucp->uc_mcontext.mc_rip);
#elif (defined (__i386__))
GC_handleSigProf ((code_pointer) ucp->uc_mcontext.mc_eip);
#else
#error Profiling handler is missing for this architecture
#endif
}
Please, tell me what should I write for ARM.
#elif (defined (__arm__))
GC_handleSigProf ((code_pointer) ucp->uc_mcontext.mc_vfp_ptr);
Is it?
Nick.
More information about the freebsd-arm
mailing list