• Wilson Callan's avatar
    m68knommu: fix signal handling return path · 2d7f16d6
    Wilson Callan authored
    The return from software signal handling pushes code on the stack
    that system calls to the kernels cleanup code. This is borrowed
    directly from the m68k linux signal handler.
    
    The rt signal case is not quite right for the restricted instruction
    set of the ColdFire parts. And neither the normal signal case or rt
    signal case properly flushes/pushes the appropriate cache lines.
    
    Rework the return path to just call back through some code fragments
    in the kernel proper (with no MMU in the way we can do this). No
    cache problems, and less code overall.
    
    Original patch submitted by Wilson Callan <wcallan@savantav.com>
    
    Greg fixed the rt signal return path to use the proper system call
    Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    2d7f16d6
signal.c 19.7 KB