Skip to content
  • Jan Kiszka's avatar
    cobalt/kernel: Fix mode of mayday syscall · 9b68cbe2
    Jan Kiszka authored and Philippe Gerum's avatar Philippe Gerum committed
    
    
    The oneway mode meant norestart, thus return -EINTR instead of retrying
    the syscall after signal processing. But this caused damaged to the
    register state of the mayday-interrupted thread, most visible on x86-64
    where RAX is holding the RIP.
    
    Fix this by restarting the syscall on signals. The syscall is supposed
    to deliver the same result then, including a correct register state.
    
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    9b68cbe2