Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2019 14:11:33 +0300
From:      Nick Kostirya <nikolay.kostirya@i11.co>
To:        freebsd-arm@freebsd.org
Subject:   ucontext
Message-ID:  <20191024141133.04fb0693@i11.co>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191024141133.04fb0693>