diff options
Diffstat (limited to 'libc/ports/sysdeps/unix/sysv/linux/am33')
-rw-r--r-- | libc/ports/sysdeps/unix/sysv/linux/am33/brk.c | 2 | ||||
-rw-r--r-- | libc/ports/sysdeps/unix/sysv/linux/am33/clone.S | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/libc/ports/sysdeps/unix/sysv/linux/am33/brk.c b/libc/ports/sysdeps/unix/sysv/linux/am33/brk.c index 51b59adc9..8fd2ff01d 100644 --- a/libc/ports/sysdeps/unix/sysv/linux/am33/brk.c +++ b/libc/ports/sysdeps/unix/sysv/linux/am33/brk.c @@ -30,7 +30,7 @@ __brk (void *addr) { void *newbrk; - newbrk = INLINE_SYSCALL (brk, 1, __ptrvalue (addr)); + newbrk = INLINE_SYSCALL (brk, 1, addr); __curbrk = newbrk; diff --git a/libc/ports/sysdeps/unix/sysv/linux/am33/clone.S b/libc/ports/sysdeps/unix/sysv/linux/am33/clone.S index 151950c5d..cece99bf3 100644 --- a/libc/ports/sysdeps/unix/sysv/linux/am33/clone.S +++ b/libc/ports/sysdeps/unix/sysv/linux/am33/clone.S @@ -24,12 +24,11 @@ #define _ERRNO_H 1 #include <bits/errno.h> #include <asm-syntax.h> -#include <bp-sym.h> /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg); */ .text -ENTRY (BP_SYM (__clone)) +ENTRY (__clone) /* Sanity check arguments. */ cmp 0,d0 /* no NULL function pointers */ beq L(error_inval) @@ -75,6 +74,6 @@ L(here): #endif call JUMPTARGET (_exit),[],0 -PSEUDO_END (BP_SYM (__clone)) +PSEUDO_END (__clone) -weak_alias (BP_SYM (__clone), BP_SYM (clone)) +weak_alias (__clone, clone) |