• Jeff Dike's avatar
    uml: clean up sig_handler_common_skas · e6a2d1f7
    Jeff Dike authored
    sig_handler_common_skas needs significant modernization, starting with
    its name and storage class.
    
    There is no need to hide the true type of the sigcontext pointer, so
    the void * dummy parameter can be replaced with a sigcontext *sc.
    
    The array of uml_pt_regs structs used in the page fault case are gone,
    replaced by a local variable.  This is also used in the non-segfault
    case instead of the copy in the task_struct.  Since it's local, the
    special handling of the is_user flag can go away.
    
    There hasn't been any special treatment of SIGUSR1 in ages, so the
    line that enables it can be deleted.
    
    The special treatment of SIGSEGV similarly goes away, but to
    compensate, SA_NODEFER is added to sa_mask when registering a signal
    handler.
    Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    e6a2d1f7
signal.c 6.6 KB