From a32817678427b0ddbc96711ec6aed278dfa75d62 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 10 Jun 2024 10:43:33 +0200 Subject: m68k: fix for m68000 cpu See here for details: https://github.com/wbx-github/uclibc-ng/issues/15 --- libc/sysdeps/linux/m68k/clone.S | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/m68k/clone.S b/libc/sysdeps/linux/m68k/clone.S index 24071235b..a83d90a98 100644 --- a/libc/sysdeps/linux/m68k/clone.S +++ b/libc/sysdeps/linux/m68k/clone.S @@ -35,12 +35,14 @@ __clone: /* Sanity check arguments. */ - movel #-EINVAL, %d0 - movel 4(%sp), %a0 /* no NULL function pointers */ - tstl %a0 + movel #-EINVAL, %d0 + movel 4(%sp), %d1 /* no NULL function pointers */ + movel %d1, %a0 + tstl %d1 beq.w __syscall_error_trampoline - movel 8(%sp), %a1 /* no NULL stack pointers */ - tstl %a1 + movel 8(%sp), %d1 /* no NULL stack pointers */ + movel %d1, %a1 + tstl %d1 beq.w __syscall_error_trampoline /* Allocate space and copy the argument onto the new stack. */ -- cgit v1.2.3