summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-09-06 02:18:02 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-09-06 02:18:02 +0000
commit224ca9f63688cdecd80ed01c25f5f62871fe4cfc (patch)
treef0e2817ee65821e9b206befda8c20274a680ec50 /libc
parentdf6c58b8931a9419d9898ab5868796f319b13f8f (diff)
downloaduClibc-alpine-224ca9f63688cdecd80ed01c25f5f62871fe4cfc.tar.bz2
uClibc-alpine-224ca9f63688cdecd80ed01c25f5f62871fe4cfc.tar.xz
Fix 'vfork' for MIPS. The SAVE_PID and RESTORE_PID macros should not be in the libc version at all. Only the libpthread 'pt-vfork.S' will define these. Silly Steven, Trix are for kids.
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/mips/vfork.S29
1 files changed, 0 insertions, 29 deletions
diff --git a/libc/sysdeps/linux/mips/vfork.S b/libc/sysdeps/linux/mips/vfork.S
index 0dbf62e31..3d839f588 100644
--- a/libc/sysdeps/linux/mips/vfork.S
+++ b/libc/sysdeps/linux/mips/vfork.S
@@ -22,35 +22,6 @@
#include <sysdep.h>
#include <sgidefs.h>
-#ifdef __PTHREADS_NATIVE__
-#include <tls.h>
-
-/* Save the PID value. */
-#ifndef SAVE_PID
-#define SAVE_PID \
- READ_THREAD_POINTER(v1); /* Get the thread pointer. */ \
- lw a2, PID_OFFSET(v1); /* Load the saved PID. */ \
- subu a2, $0, a2; /* Negate it. */ \
- bnez a2, 1f; /* If it was zero... */ \
- lui a2, 0x8000; /* use 0x80000000 instead. */ \
-1: sw a2, PID_OFFSET(v1); /* Store the temporary PID. */
-#endif
-
-/* Restore the old PID value in the parent. */
-#ifndef RESTORE_PID
-#define RESTORE_PID \
- beqz v0, 1f; /* If we are the parent... */ \
- READ_THREAD_POINTER(v1); /* Get the thread pointer. */ \
- lw a2, PID_OFFSET(v1); /* Load the saved PID. */ \
- subu a2, $0, a2; /* Re-negate it. */ \
- lui a0, 0x8000; /* Load 0x80000000... */ \
- bne a2, a0, 2f; /* ... compare against it... */ \
- li a2, 0; /* ... use 0 instead. */ \
-2: sw a2, PID_OFFSET(v1); /* Restore the PID. */ \
-1:
-#endif
-#endif
-
#ifndef SAVE_PID
#define SAVE_PID
#endif