• Martin Koegler's avatar
    avr32: Fix sigaltstack behaviour · 7c1b90a1
    Martin Koegler authored
    A signal handler should be able to change the signal stack used for the
    next signal by altering the ucontext_t passed as a parameter to the
    handler. This does not currently work on avr32 since it doesn't update
    the in-kernel signal context from the ucontext_t upon signal handler
    return.
    
    Fix it by adding a call to do_sigaltstack() from sys_rt_sigreturn(),
    bringing it in line with most other architectures.
    Signed-off-by: default avatarMartin Koegler <mkoegler@auto.tuwien.ac.at>
    [haavard.skinnemoen@atmel.com: changed patch description]
    Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
    7c1b90a1
signal.c 7.18 KB