mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
40081c11c4
Library from "C Interfaces and Implementations" by David Hanson. PR: 6504 Submitted by: J Han <hjh@photino.com>
24 lines
433 B
Plaintext
24 lines
433 B
Plaintext
--- src/swtch.s.orig Wed Nov 5 15:03:00 1997
|
|
+++ src/swtch.s Sat Jan 9 18:56:46 1999
|
|
@@ -136,7 +136,7 @@
|
|
.end _swtch
|
|
.globl _ENDMONITOR
|
|
_ENDMONITOR:
|
|
-#elif linux && i386
|
|
+#elif (linux || unix) && i386
|
|
.align 4
|
|
.globl __swtch
|
|
.globl _swtch
|
|
@@ -165,7 +165,11 @@
|
|
pushl %edi
|
|
call *%esi
|
|
pushl %eax
|
|
+#ifdef __ELF__
|
|
call Thread_exit
|
|
+#else
|
|
+ call _Thread_exit
|
|
+#endif
|
|
.globl __ENDMONITOR
|
|
.globl _ENDMONITOR
|
|
__ENDMONITOR:
|