From 99b306dc44a21202c8db071e3565235d8f946bbd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 11 May 1995 01:02:23 +0000 Subject: Wed May 10 21:00:47 1995 Roland McGrath * 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. --- sysdeps/mach/i386/sysdep.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysdeps/mach/i386') diff --git a/sysdeps/mach/i386/sysdep.h b/sysdeps/mach/i386/sysdep.h index 692310b320..5b4246e016 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 -- cgit v1.2.3