aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/i386
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-05-11 01:02:23 +0000
committerRoland McGrath <roland@gnu.org>1995-05-11 01:02:23 +0000
commit99b306dc44a21202c8db071e3565235d8f946bbd (patch)
tree9485bfe539e7b98ec92b6b5b00ff9daddc6fd341 /sysdeps/mach/i386
parent87220b3563eedfa50296d8eb206d506a571cc0a1 (diff)
downloadglibc-99b306dc44a21202c8db071e3565235d8f946bbd.zip
glibc-99b306dc44a21202c8db071e3565235d8f946bbd.tar.gz
glibc-99b306dc44a21202c8db071e3565235d8f946bbd.tar.bz2
Wed May 10 21:00:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro. * Makerules (install-lib.so): Add %.so for each %_pic.a. * sysdeps/mach/hurd/i386/init-first.c: New file.
Diffstat (limited to 'sysdeps/mach/i386')
-rw-r--r--sysdeps/mach/i386/sysdep.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/mach/i386/sysdep.h b/sysdeps/mach/i386/sysdep.h
index 692310b..5b4246e 100644
--- a/sysdeps/mach/i386/sysdep.h
+++ b/sysdeps/mach/i386/sysdep.h
@@ -44,6 +44,11 @@ Cambridge, MA 02139, USA. */
"g" (ptr), "m" (*(long int *) (fn)) : "%esp"); \
} while (0)
+#define RETURN_TO(sp, pc, retval) \
+ asm volatile ("movl %0, %%esp; jmp %*%1 # %2" \
+ : : "g" (sp), "r" (pc), "a" (retval))
+
+
#define STACK_GROWTH_DOWN
#include_next <sysdep.h>