summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-06-10 10:43:33 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2024-06-10 10:43:33 +0200
commita32817678427b0ddbc96711ec6aed278dfa75d62 (patch)
tree1e886bc02094a2baae0b67feb2ca5de4982505ef
parent138274e92a01be8a98392489b1a2f497ab11c201 (diff)
m68k: fix for m68000 cpu
See here for details: https://github.com/wbx-github/uclibc-ng/issues/15
-rw-r--r--libc/sysdeps/linux/m68k/clone.S12
1 files changed, 7 insertions, 5 deletions
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. */