Commit Graph

54116 Commits

Author SHA1 Message Date
gallatin
7a1d229a0b fix glaring bugs in rt signals -- copyout the right signal mask in
linux_rt_sendsig() and restore the same signal mask linux does
in rt_sigreturn().  This gets us saving/restoring all 64-bits of the
linux sigset_t in rt signals.

Reviewed by: marcel
2000-11-16 02:07:05 +00:00
jhb
3c1c213868 Argh, add in a missing release of the sched_lock. 2000-11-16 01:16:54 +00:00
jhb
534ed28202 CURSIG() calls functions that acquire sleep mutexes, so it is not a good
idea to be holding the sched_lock while we are calling it.  As such,
release sched_lock before calling CURSIG() in msleep() and mawait() and
reacquire it after CURSIG() returns.

Submitted by:	witness
2000-11-16 01:07:19 +00:00
gallatin
ae7541c2af Use the linux_connect() on alpha rather than passing directly through
to our native connect().  This is required to deal with the differences
in the way linux handles connects on non-blocking sockets.

This gets the private beta of the Compaq Linux/alpha JDK working
on FreeBSD/alpha

Approved by: marcel
2000-11-16 01:05:53 +00:00
gallatin
5a6d9ce7f2 make the fcntl() flags match what the linux/alpha port uses, not
what linux/i386 uses
2000-11-16 00:58:07 +00:00
alfred
a144d0ffb0 install/build accf_* manpages 2000-11-16 00:57:52 +00:00
alfred
266d8f36db Xref accf_http and accf_data 2000-11-15 22:54:06 +00:00
alfred
5835a35d8a Document the accf_data accept filter: "dataready" 2000-11-15 22:53:02 +00:00
alfred
307c638c7f Document the accf_http accept filter "httpready". 2000-11-15 22:46:21 +00:00
jhb
e8689cafdb - Rename await() to mawait(). mawait() is to await() as msleep() is to
tsleep().  Namely, mawait() takes an extra argument which is a mutex
  to drop when going to sleep.  Just as with msleep(), if the priority
  argument includes the PDROP flag, then the mutex will be dropped and will
  not be reacquired when the process wakes up.
- Add in a backwards compatible macro await() that passes in NULL as the
  mutex argument to mawait().
2000-11-15 22:39:35 +00:00
jhb
b73beb3c1c - Replace a KASSERT() that knew too much about mutex internals with a
mtx_assert() that ensures the mutex we release during msleep() is both
  not recursed and owned by the current process.
2000-11-15 22:30:48 +00:00
jhb
84b861923d - Convert references from tsleep() -> msleep()
- Fix a buglet in a comment above await()
2000-11-15 22:27:38 +00:00
jhb
cd70252fab - Add a new macro DROP_GIANT_NOSWITCH() that is similar to DROP_GIANT()
except that it uses the MTX_NOSWITCH flag while it releases Giant via
  mtx_exit().
- Add a mtx_recursed() primitive.  This primitive should only be used on
  a mutex owned by the current process.  It will return non-zero if the
  mutex is recursively owned, or zero otherwise.
- Add two new flags MA_RECURSED and MA_NOTRECURSED that can be used in
  conjuction with MA_OWNED to control the assertion checked by mtx_assert().
- Fix some of the KTR tracepoint strings to use %p when displaying the lock
  field of a mutex, which is a uintptr_t.
2000-11-15 22:12:33 +00:00
jhb
46bedae524 Include the right headers to get the DDB #define and the db_active variable. 2000-11-15 22:08:16 +00:00
jhb
e7a07f6938 - Replace some instances of sched_ithd with sched_swi in KTR tracepoints.
- Assert that Giant is not owned during the main loop of sithd_loop().
2000-11-15 22:05:23 +00:00
obrien
1cfffaed32 Correct the Bintuils src path from the debugging version I accidently
committed.
2000-11-15 22:05:00 +00:00
jhb
4521d2db26 Assert that Giant is not owned during the main loop of ithd_loop(). 2000-11-15 22:03:26 +00:00
jhb
dd822f99af Declare the 'witness_spin_check' properly as a per-CPU variable in the
non-SMP case.
2000-11-15 22:02:05 +00:00
jhb
eeb4b81a8f Don't perform witness checks in witness_enter() during a panic. 2000-11-15 22:00:31 +00:00
jhb
d9686a3c43 Add the 'witness_spin_check' per-CPU variable. 2000-11-15 21:58:02 +00:00
jhb
829c374088 - Don't acquire/release Giant during an interrupt context for machine
checks, clock interrupts, and device interrupts.
- Assert that Giant is not owned during the main loop of ithd_loop().
2000-11-15 21:56:50 +00:00
jhb
1ad20a84e9 Make ktr_verbose a bit more useful:
- On SMP systems display the cpu number with each message
- If ktr_verbose > 1, then include the filename and line number with each
  trace message
2000-11-15 21:51:53 +00:00
obrien
d98cb32469 Sync with sys/i386/conf/GENERIC rev 1.291.
Remove `pmtimer' from the MFSROOT kernel as `apm' is already removed.
`pmtimer' also removed from the Alpha kernel incase it ever winds up there.
(could it ever?)
2000-11-15 21:36:39 +00:00
obrien
74992d1b54 Upgrade to Binutils 2.10.1. 2000-11-15 21:29:55 +00:00
obrien
4b0564d836 dyn-string.* moved to libiberty/ and include/. 2000-11-15 21:27:22 +00:00
obrien
4bbdc51e15 Merge rev 1.2 into Binutils 2.10.1.
Teach `ld' about FreeBSD (ie, fix the All the World's Linux) and how to
access our ld ELF hints.
2000-11-15 21:26:21 +00:00
obrien
85d73a352d Merge conflicts. Adds revs 1.2 and 1.3 (FreeBSD configuration support),
and preliminary sparc, strongarm, PPC FreeBSD support to Binutils 2.10.1.
2000-11-15 21:25:10 +00:00
obrien
c11c5e6d57 Merge rev 1.2 (FreeBSD configuration support) into Binutils 2.10.1. 2000-11-15 21:24:10 +00:00
obrien
a6a7e3b3b7 Merge conflicts into Binutils 2.10.1.
This fixes the i386 config bits, merge in the Alpha bits, and adds
arm32 & sparc bits.
2000-11-15 21:23:09 +00:00
obrien
43d798c56f We use the stock version of this file now. 2000-11-15 21:20:56 +00:00
obrien
854c41c543 Return to the vendor's version of this file as in rev 1.4. 2000-11-15 21:20:05 +00:00
obrien
0a3fe0e603 We use the stock version of this file now.
(Our needs have been addressed by the Binutils maintainers)
2000-11-15 21:11:53 +00:00
obrien
3286cd7aef Only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined elsewhere.
FreeBSD does not adhear to the System V 64-bit ABI for the dynamic
[linker] interpreter, and thus must override this value.
2000-11-15 21:07:32 +00:00
obrien
8cfafc7eda Only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined elsewhere.
FreeBSD does not adhear to the Intel386 System V ABI for the dynamic
[linker] interpreter, and thus must override this value.
2000-11-15 21:05:56 +00:00
obrien
4618b022f1 Merge our ELF branding into Binutils 2.10.1. 2000-11-15 21:04:41 +00:00
obrien
fd8f75861a This commit was generated by cvs2svn to compensate for changes in r68765,
which included commits to RCS files with non-trunk default branches.
2000-11-15 20:52:56 +00:00
obrien
ccfae22a5c Import of GNU Binutils version 2.10.1.
Believe it or not, this is heavily stripped down.
2000-11-15 20:52:56 +00:00
mckusick
88da189228 Bug fix for revision 1.14 on the replacement of CIRCLEQ with TAILQ.
Submitted by:	Warner Losh <imp@village.org>
2000-11-15 20:07:16 +00:00
jhb
48f3724161 Fix all the interrupt enabled/disabled assertions which were backwards. 2000-11-15 19:45:10 +00:00
jhb
81c335bfdd Don't perform an mi_switch() when we release Giant during cpu_exit(). We
are about to call cpu_switch() anyways.

Found by:	witness
2000-11-15 19:44:38 +00:00
mckusick
e8e8186149 In preparation for deprecating CIRCLEQ macros in favor of TAILQ
macros which provide the same functionality and are a bit more
efficient, convert use of CIRCLEQ's in netgraph PPP code to TAILQ's.

Reviewed by:	Archie Cobbs <archie@dellroad.org>
2000-11-15 19:40:34 +00:00
imp
6381aaf0e0 vx no longer uses pci compat shims and this doesn't need a count 2000-11-15 18:43:41 +00:00
imp
223ca34beb MFGENERIC: 1.291 2000-11-15 18:42:44 +00:00
imp
7b5e4ad072 Add pmtimer device, necessary for proper time keeping when apm or
other power management devices are enabled.
2000-11-15 18:36:24 +00:00
ben
354e118452 remove trailing periods from SEE ALSO. 2000-11-15 17:27:54 +00:00
ben
0fcdecb244 remove period from SEE ALSO. 2000-11-15 17:02:54 +00:00
ben
6f0ff396c7 more removal of trailing periods from SEE ALSO. 2000-11-15 16:44:24 +00:00
ben
6e87bfd080 remove fullstops from the end of .Xr lines in SEE ALSO sections. 2000-11-15 16:00:07 +00:00
joe
193bac84a1 Wrap the build options up into the crunch.conf file now that crunchgen
knows what to do with them.
2000-11-15 14:47:37 +00:00
ben
1397cf269b Remove fullstops from the end of .Xr lines in SEE ALSO section. 2000-11-15 14:40:14 +00:00