Commit Graph

43 Commits

Author SHA1 Message Date
Ulrich Drepper
4d1f7dc129 Include libintl.h. 1999-06-19 09:47:58 +00:00
Ulrich Drepper
600e633ff6 (_hurd_setup_sighandler): Use SS_DISABLE instead of SA_DISABLE. Use
SS_ONSTACK instead of SA_ONSTACK where appropriate.
1998-08-08 19:56:26 +00:00
Ulrich Drepper
e66186b39d (__sigreturn): Use SS_ONSTACK instead of SA_ONSTACK. 1998-08-08 19:55:32 +00:00
Ulrich Drepper
030d182c93 Don't define __libc_pid. 1998-06-29 12:43:07 +00:00
Ulrich Drepper
905714080f Issue error message if the header is used directly. 1997-11-26 04:14:44 +00:00
Ulrich Drepper
127f2c3b83 Call __getopt_clean_environment with additional argument. 1997-09-21 01:23:55 +00:00
Ulrich Drepper
606bb553c3 Extra files to distribute for mach/hurd/mips. 1997-08-29 20:37:37 +00:00
Ulrich Drepper
36e28152c9 Update and reformat copyright, remove trailing white spaces and send
through unexpand.
1997-06-23 21:54:51 +00:00
Ulrich Drepper
788c7990eb Moved to bits/. 1997-06-21 02:40:36 +00:00
Ulrich Drepper
ede6d67ba2 Hurd/MIPS64 patches. 1997-06-21 01:43:54 +00:00
Ulrich Drepper
c20a529cc7 Moved from below. 1997-06-21 01:43:22 +00:00
Ulrich Drepper
10fa6c02ad longjmp support for Hurd/MIPS. 1997-06-21 01:42:52 +00:00
Ulrich Drepper
adc3f785dc Interrupt code for Hurd/MIPS. 1997-06-21 01:42:17 +00:00
Ulrich Drepper
304f5963db Init code for Hurd/MIPS. 1997-06-21 01:41:58 +00:00
Ulrich Drepper
b836323e96 Dynamic loader for Hurd/MIPS. 1997-06-21 01:41:15 +00:00
Thomas Bushnell, BSG
862eb33e44 *** empty log message *** 1996-09-11 02:47:56 +00:00
Roland McGrath
4003d88d7b (_hurd_setup_sighandler): In rpc_wait case, frob mach_msg args to set
timeout on receive.
1995-08-14 22:17:20 +00:00
Roland McGrath
bdaaafad70 (_hurdsig_rcv_interrupted_p): Function removed. 1995-08-14 22:12:34 +00:00
Roland McGrath
8548d4c084 Use spin lock operations on sigstate lock.
Don't expect _hurd_self_sigstate to lock it.
1995-02-07 04:25:56 +00:00
Roland McGrath
14b832adfd (_hurd_setup_sighandler): Use `long int' for sigcode.
Use explicit register numbers instead of names.
(_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
1995-02-03 23:20:27 +00:00
Roland McGrath
37da91a00d Use `long int' for sigcode. 1995-02-03 23:15:48 +00:00
Roland McGrath
1cec31f4d4 Converted to use weak aliases with macros from libc-symbols.h. 1995-01-21 15:40:54 +00:00
Roland McGrath
ccd1325bd5 Use ENV[0].__jmpbuf[0]. 1994-12-05 17:57:43 +00:00
Roland McGrath
69edd206e9 Use ENV[0].__jmpbuf. 1994-12-05 17:55:41 +00:00
Roland McGrath
239291e1db (struct sigcontext): Use __sigset_t' instead of sigset_t' for `sc_mask'. 1994-11-22 22:29:25 +00:00
Roland McGrath
7704bac4de Restore FPU state. Code from kkojima. 1994-09-03 02:31:57 +00:00
Roland McGrath
92ae11d456 (__sigreturn): Arg is not const.
After restoring SCP->sc_mask, check for pending signals (newly unblocked);
if any, set SS->context to SCP, clear SS->intr_port, and send sig_post
to the signal thread to deliver the pending signals.
Don't write $1 value into the user stack.  Instead, write it into the word
just past SCP->sc_pc; then point $1 at SCP->sc_pc and use `op_sigreturn'
pseudo-instruction to restore the PC and $1 from that.
1994-08-22 09:06:46 +00:00
Roland McGrath
62833ce689 Include "thread_state.h" instead of <mach/thread_status.h>.
(struct mach_msg_trap_args): New type.
(trampoline): Function removed.
(_hurd_setup_sighandler): Take struct hurd_sigstate * arg instead of FLAGS
and SIGALTSTACK args; take new flag arg RPC_WAIT; use struct
machine_thread_all_state * for STATE arg.
New declared labels `trampoline', `rpc_wait_trampoline' mark asm code at
end of function (after return).
Add another struct sigcontext * to STACKFRAME after the first one, for the
arg to __sigreturn.
If SS->context is set, fill registers in SCP from that instead of STATE,
and reset SS->INTR_PORT from it.
If RPC_WAIT is set, set up to use rpc_wait_trampoline and frob args to
mach_msg_trap syscall in progress so that it will retry the receive
operation (but not resend!).
{rpc_wait_trampoline, trampoline}: New trampoline code.
(_hurd_rcv_interrupted_p): New function.
1994-08-22 05:02:49 +00:00
Roland McGrath
cd582f3e94 (sc_mips_thread_state, sc_mips_exc_state, sc_mips_float_state): New macros,
marking members that correspond to thread_state.h structs.
1994-08-16 05:58:17 +00:00
Roland McGrath
2a1ec466ab (struct sigcontext): Renamed member sc_err' to sc_error'. 1994-08-11 00:26:03 +00:00
Roland McGrath
b87619900a (_hurd_exception2signal): Take new arg `int *error'; set it. 1994-08-08 22:54:44 +00:00
Roland McGrath
bd2a5f499d (struct sigcontext): Added member `sc_err'. 1994-08-08 07:58:38 +00:00
Roland McGrath
d85eb528c4 Rearranged structure so machine-dependent portion is laid out like `struct
mips_thread_state; struct mips_exc_state; struct mips_float_state;'.
1994-08-03 16:32:47 +00:00
Roland McGrath
b8f04323dc Compare *reply_port to MACH_PORT_NULL, not implicit zero.
(restore_gpr): Use N-1 as subscript into sc_gpr (sc_gpr[0] => $1).
Before general regs, restore from sc_mdlo and sc_mdhi.
Don't treat sp, fp specially; use restore_gpr for them too.
For final return, store user $1 value beyond top of user stack ahead of
time; Then use $1 to hold the user PC, and restore it from the stack in the
delay slot.
1994-08-03 06:45:59 +00:00
Roland McGrath
8d2f85c668 (_hurd_setup_sighandler): Copy TS to SCP all at once. 1994-08-03 01:38:43 +00:00
Roland McGrath
b6cc520764 (struct sigcontext): sc_gpr has 31 elts; sc_gpr, sc_pc, sc_mdlo, sc_mdhi
are arranged in that order to mimic struct mips_thread_state.
1994-08-03 01:36:31 +00:00
Roland McGrath
c1eb1d76e2 (_hurd_setup_sighandler): Save mdlo and mdhi. 1994-08-02 00:15:34 +00:00
Roland McGrath
e0ec2e47de (struct sigcontext): Add members sc_mdlo, sc_mdhi. 1994-08-02 00:12:17 +00:00
Roland McGrath
6adee8d53b Rename variable AT (which is the register's name) to SCPREG.
Fix some SCP references in register loads to use SCPREG instead.
Load SCPREG->sc_pc into $24 and jump to it, restoring $at in the delay slot.
This still leaves $24 clobbered.
1994-07-29 16:39:58 +00:00
Roland McGrath
3844669a62 Use `unsigned int' consistently for port names. 1994-07-29 15:53:52 +00:00
Roland McGrath
840c5e79e3 Don't set up args on the stack; pass them in registers. 1994-07-29 15:46:10 +00:00
Roland McGrath
76657427f5 entered into RCS 1994-07-09 07:24:37 +00:00
Roland McGrath
c4a19f6a24 Initial revision 1994-07-09 07:12:44 +00:00