scw
b722bfb186
Compensate for the syscall args stack cleanup in the clone.
...
(Pointed out by Matthias Pfaller)
2001-07-20 17:08:18 +00:00
scw
c45a0d8765
clone(2) syscall frontend for m68k.
2001-07-19 21:50:46 +00:00
kleink
f56935aca7
Shameless hack to reference end when using a.out and _end when using ELF.
2001-05-05 17:46:37 +00:00
scw
e86cd7609a
The bare minimum to get m68k libc working again...
2000-12-13 21:46:23 +00:00
scw
c762ba1426
Use A1 to save the return address, since A0 is no longer preserved across
...
system calls.
2000-12-07 14:13:43 +00:00
scw
4cc90c99f2
The last change broke things if SYS___vfork14 returned an error; fix it.
2000-12-07 14:12:49 +00:00
scw
6751bb4f81
Save the return address in %a1 across the vfork syscall instead of %a0.
2000-12-02 17:03:06 +00:00
scw
c81e32f3dd
Add missing register prefixes.
2000-11-28 11:37:20 +00:00
kleink
a253819635
Whitespace botch in previous, noticed by Leo Weppelman and Thorsten Frueauf.
2000-10-02 14:52:39 +00:00
kleink
82fd76bb06
Need an internal name for pipe(2).
2000-09-28 08:38:53 +00:00
itohy
af83a97717
Add special treatment of shmat(2).
...
On m68k ELF calling standard (__SVR4_ABI__), if a function
returns a pointer, the return value should go to a0 as well as d0.
2000-07-07 08:20:50 +00:00
kleink
b8a4d7adf9
Need an internal name for fork().
2000-06-26 06:32:54 +00:00
kleink
15bc7ed349
Thinko in previous: we do always use an internal name.
2000-06-26 06:25:36 +00:00
kleink
03f996bd0c
Add internal names for brk() and sbrk().
2000-06-23 15:40:36 +00:00
thorpej
3b435a7396
Add register prefixes.
1999-10-25 23:48:07 +00:00
itohy
1d0a433095
ELF PIC support.
1999-10-18 03:24:28 +00:00
thorpej
30dca7f7db
Add __msgctl13(), __semctl13(), and __shmctl13() (symbols are __RENAME()'d
...
in their respective header files). Add PSEUDO stubs for the old versions
of these system calls.
Note that __semctl13() doesn't require the extra stub that the old
semctl()/__semctl() did, as the SUSv2 version takes variable arguments,
and thus does not require the extra indirection.
1999-08-25 05:09:27 +00:00
kleink
5b2a4f0824
Call cerror through the PLT.
1999-05-02 23:19:49 +00:00
kleink
18d5ba6151
We can shave off a register-register move when using the SVR4 ABI: __errno()
...
will return its pointer result in a0.
1999-05-02 20:52:02 +00:00
kleink
b74f892f6d
Declare cerror using _ENTRY() to get, among other things, a .type statement.
1999-04-29 15:37:21 +00:00
kleink
6348b7d5b5
* On architectures using ELF, and conditionally on those in transition, rename
...
_ASM_LABEL(cerror) and _ASM_LABEL(curbrk) to _C_LABEL(__cerror) and
_C_LABEL(__curbrk) (or their respective architecture-specific equivalents) to
avoid possible name clashes with identifiers used in user applications.
* Do the same for minbrk on all architectures to avoid a GCC-specific (and
on ELF architectures effectively useless) symbol reference renaming in MI code.
1999-01-14 22:48:18 +00:00
thorpej
efd37a7da8
Warn about references to the compatibility vfork() (i.e. the vfork() with
...
the 4.4BSD non-shared-address-space semantics), and direct the user to
include <unistd.h> to generate the correct reference.
This warning isn't about an ABI compatibility issue, but the new vfork() is
considerably faster.
1998-12-02 19:29:56 +00:00
thorpej
e644246e6a
Warn about references to the compatibility() sigaction(), sigpending(),
...
sigprocmask(), sigreturn(), and sigsuspend(), and direct the user to
include <signal.h> to generate the correct reference.
1998-12-02 01:01:03 +00:00
kleink
ad0a7279e9
Add *__errno() redirection for _REENTRANT code. Also, some movel vs. movl
...
consistency.
1998-10-06 19:05:26 +00:00
kleink
9849eb57f8
Declare one of {__errno,errno}, depending on _REENTRANT.
1998-10-06 18:56:25 +00:00
thorpej
4359863000
Update for signal changes.
1998-10-05 02:34:18 +00:00
thorpej
d5bc168ba9
Use _C_LABEL() to generate C labels.
1998-07-01 06:44:14 +00:00
thorpej
bedc7b48df
Add syscall stubs for __vfork14(). These are basically copies of Ovfork.S
...
with the syscall numbers changed.
Since 4.4BSD vfork(2) did not share address space, Ovfork.S could be changed
to be identical to fork.S (modulo syscall numbers). __vfork14.S, however,
needs to remain separate since with a shared address space, the stub needs to
pre-decrement the stack and do an indirect jump to the return address, so that
the shared stackframe is still there when the parent returns. (Obviously,
this does not apply to systems which to not build stackframes on leaf calls.)
1998-01-04 20:58:08 +00:00
jtc
11935403ef
PROF -> GPROF
1996-11-30 02:31:49 +00:00
mycroft
c9ec05f4b2
Treat reboot() like a normal system call. From PR 2458.
1996-11-11 13:41:08 +00:00
jtc
cbae3f00b8
Change __REENTRANT to _REENTRANT, the latter is used Solaris and I can
...
think of no good reason to be different.
1996-11-07 05:20:33 +00:00
jtc
f1af62ef3d
Changed so that when __REENTRANT is defined, cerror calls __errno()
...
for the address of a variable used to store the error number instead
of writing to the global errno.
In a multi-threaded program, __errno() will return a pointer to a
thread-specific variable.
1996-11-07 05:16:41 +00:00
thorpej
6cdbd4c23a
New-style RCS ids. Use the RCSID() macro where appropriate.
1995-12-13 22:17:46 +00:00
mycroft
4c34be6b52
Clean up deleted files.
1995-03-01 00:00:00 +00:00
chopps
628cf4e2c8
fixed ld.so to properly save all regs when binding PIC functions. We no
...
longer need the special case (PIC) code to push args when calling cerror.
1994-08-04 05:02:31 +00:00
mycroft
ca01015e04
Clean up deleted files.
1994-04-02 05:37:06 +00:00
cgd
b62b3fc050
have cerror DTRT on returns, w.r.t. quads and -1. it needs to be done
...
here (think of syscall(SYS_lseek,...)). also, kill bogus lseek thang.
1994-04-02 05:37:04 +00:00
mycroft
d5dbb53fee
Set d1 to -1 before cerror.
1994-03-31 18:50:58 +00:00
mycroft
1fe07f186d
Separate curbrk and mincrk.
1994-01-27 15:08:03 +00:00
mycroft
3463cb4eef
Trivial speedup inspired by SPARC code.
1994-01-27 15:00:49 +00:00
mycroft
c25c219087
Random cleanup.
1994-01-27 14:45:52 +00:00
jtc
0e09f939b2
Fix bug #24 by renaming _logname_valid to __logname_valid.
1993-12-18 01:02:47 +00:00
briggs
0db5dab189
Ovfork doesn't get .even any other way, so we must explicitly give it
...
one.
1993-12-04 18:59:42 +00:00
mycroft
448e711c78
Clean up deleted files.
1993-12-04 01:28:42 +00:00
paulus
75d4ac9791
Machine-dependent files for generic m68k machines (copied from hp300),
...
modified to support shared libraries.
1993-11-25 23:39:23 +00:00