From 1f920d4fb4b20c5f88284bd06f4e4399a1c76ede Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 4 Oct 1995 20:55:28 +0000 Subject: (JUMPTARGET): New macro, versions for [PIC] and not. Use it in place of EXT. --- libthreads/i386/csw.S | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libthreads') diff --git a/libthreads/i386/csw.S b/libthreads/i386/csw.S index 51193798..0951c5cc 100644 --- a/libthreads/i386/csw.S +++ b/libthreads/i386/csw.S @@ -26,6 +26,9 @@ /* * HISTORY * $Log: csw.S,v $ + * Revision 1.4 1995/10/04 20:22:17 roland + * [PIC] (EXT): Redefine to use PLT. + * * Revision 1.3 1995/05/12 18:35:55 roland * Use EXT macro instead of explicit underscores. * @@ -59,8 +62,9 @@ #include #ifdef PIC -#undef EXT -#define EXT(name) name@PLT +#define JUMPTARGET(name) EXT(name##@PLT) +#else +#define JUMPTARGET(name) EXT(name) #endif /* @@ -114,7 +118,7 @@ ENTRY(cproc_start_wait) movl $0,%ebp /* (clear frame pointer) */ xorl %eax,%eax /* unlock */ xchgl %eax,(%edx) /* the lock - now old thread can run */ - call EXT(cproc_waiting)/* call cproc_waiting */ + call JUMPTARGET(cproc_waiting)/* call cproc_waiting */ /*NOTREACHED*/ /* @@ -138,7 +142,7 @@ ENTRY(cproc_prepare) /* 20 return PC from cthread_body */ /* 24 argument to cthread_body */ movl $0,12(%edx) /* clear frame pointer */ - movl $EXT(cthread_body),16(%edx) + movl $JUMPTARGET(cthread_body),16(%edx) /* resume at cthread_body */ movl $0,20(%edx) /* fake return address from cthread_body */ movl B_ARG0,%ecx /* get child thread pointer */ -- cgit v1.2.3