How to setup a handler for sigaction() ?

Petr Benes benesp16 at fel.cvut.cz
Tue Apr 26 20:55:56 UTC 2011


Btw. I am using RTEMS latest version, pc386 bsp and x86_64 dual core 
processor :).

On 04/26/2011 03:13 PM, Petr Benes wrote:
> Hi all,
>
> I want to ask if you happen to know how to set up a signal handler for
> long jumps in order to get a context previously saved by sigsetjmp.
>
> a) I save context by sigsetjmp()
> b) I register a handler
> struct sigaction sa_long_jump;
> sa_long_jump.sa_sigaction = __long_jump_handler;
>
> c) My handler in Linux used to look like this:
>
> void __long_jump_handler(int s, siginfo_t *info, void *c) {
> ...context = info->si_ptr; // this is not in rtems
> }
>
> But how about RTEMS?
>
>
> Regards
>
> Petr Benes


-- 
Bc. Petr Beneš
--------------------------
mail  : benesp16 at fel.cvut.cz
web   : www.petben.net
mobile: +420 774 990 750
icq   : 286131561



More information about the users mailing list