diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-07-20 23:41:10 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-31 18:00:08 +0100 |
commit | 7825930078208462655e107677656c45014e91b4 (patch) | |
tree | 0911271efdb803f51d366647d1b0893ec3995d87 /libc/sysdeps/linux/microblaze/vfork.S | |
parent | a7f8986f6e81b912b35b46dcad4b8258f75c8b29 (diff) |
microblaze: use assembly version of clone, fix vfork
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Diffstat (limited to 'libc/sysdeps/linux/microblaze/vfork.S')
-rw-r--r-- | libc/sysdeps/linux/microblaze/vfork.S | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/libc/sysdeps/linux/microblaze/vfork.S b/libc/sysdeps/linux/microblaze/vfork.S index cd6012889..cadd1167d 100644 --- a/libc/sysdeps/linux/microblaze/vfork.S +++ b/libc/sysdeps/linux/microblaze/vfork.S @@ -29,19 +29,14 @@ __vfork: addi r4, r3, 125 /* minimum err value */ blti r4, 1f /* is r3 < -125? */ bri 2f /* normal return */ -1: sub r3, r3, r0 /* r3 = -r3 */ -#ifdef __PIC__ - mfs r3,rpc - addik r3,r3,_GLOBAL_OFFSET_TABLE_+8 - lwi r3,r3,C_SYMBOL_NAME(errno)@GOT - sw r3, r0, r3 -#else - swi r3, r0, C_SYMBOL_NAME(errno); -#endif - /* state restore etc */ + +1: rsubk r3,r3,r0 + rtsd r15,8 + addik r3,r0,-1 /* delay slot. */ + 2: rtsd r15, 8 /* error return */ nop .size __vfork, .-__vfork -weak_alias(__vfork,vfork) +weak_alias(__vfork, vfork) libc_hidden_def(vfork) |