Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39923326 authored by Jesper Nilsson's avatar Jesper Nilsson
Browse files

CRIS: v32: Correct auto-restart of syscalls



Register number was incorrect in syscalls
that go via the restartblock (e.g, poll).

Signed-off-by: default avatarEdgar Iglesias <Edgar.Iglesias@axis.com>
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent e281a31e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -587,7 +587,7 @@ do_signal(int canrestart, struct pt_regs *regs)
		}

		if (regs->r10 == -ERESTART_RESTARTBLOCK){
			regs->r10 = __NR_restart_syscall;
			regs->r9 = __NR_restart_syscall;
			regs->erp -= 2;
		}
	}