Commit Graph

61470 Commits

Author SHA1 Message Date
Benno Rice
111c77dcef Fix comment breakage. 2001-06-27 12:20:48 +00:00
Benno Rice
1ac2761200 And he does it again...
This commit was meant to be to add inline functions for manipulation of
various privileged registers and to convert some functions to using them.

As it is, it's my second forced commit of the evening.
2001-06-27 12:19:07 +00:00
Benno Rice
abc5579e8c Fix the atomic_*_32 operations. These were written before I had the ability
to test them properly and before I had a working knowledge of GCC asm
constraints.
2001-06-27 12:17:23 +00:00
Benno Rice
62626b2c33 Bracket this file in the usual #ifndef/#define/#endif stuff to prevent
multiple inclusion.
2001-06-27 12:15:58 +00:00
Benno Rice
97d9f676e5 Garbage collect some debug code. 2001-06-27 12:15:12 +00:00
Benno Rice
923c5a28eb Oops, this was meant to be done in a later commit but I goofed.
This commit was meant to add entries for extintr.c (used partially by the
new clock/timecounter which is coming in a later commit) and entries for
bits of DDB source, which is also coming soon.
2001-06-27 12:14:22 +00:00
Benno Rice
00267919e1 Add -msoft-float to COPTS to stop GCC attempting to be "smart" and using
floating point registers for various optimisation tweaks.
2001-06-27 12:10:25 +00:00
Jason Evans
651974ee92 Fix a race condition in pthread_join(). All of the following must occur
atomically:

1) Search _thread_list for the thread to join.
2) Search _dead_list for the thread to join.
3) Set the running thread as the joiner.

While we're at it, fix a race in the case where multiple threads try to
join on the same thread.  POSIX says that the behavior of multiple joiners
is undefined, but the fix is cheap as a result of the other fix.
2001-06-27 11:41:15 +00:00
John Baldwin
5f36700a32 - Add trylock variants of shared and exclusive locks.
- The sx assertions don't actually need the internal sx mutex lock, so
  don't bother doing so.
- Add a new assertion SX_ASSERT_LOCKED() that asserts that either a
  shared or exclusive lock should be held.  This assertion should be used
  instead of SX_ASSERT_SLOCKED() in almost all cases.
- Adjust some KASSERT()'s to include file and line information.
- Use the new witness_assert() function in the WITNESS case for sx slock
  asserts to verify that the current thread actually owns a slock.
2001-06-27 06:39:37 +00:00
John Baldwin
04297fe609 - Add a new witness_assert() to perform arbitrary locking assertions.
- Clean up the KTR tracepoints to be slighlty more consistent and useful
- Fix a bug in WITNESS where we would recurse indefinitely and blow the
  stack when acquiring Giant after sleeping with a sleepable lock held.

Reported by:	tanimura (3)
2001-06-27 06:27:29 +00:00
John Baldwin
776e0b3693 - Always use the proc lock of the task leader to protect the peers list of
processes.
- Don't construct fake call args and then call kill().  psignal is not
  anymore complicated and is quicker and not prone to locking problems.
  Calling psignal() avoids having to do a pfind() since we already have a
  proc pointer and also allows us to keep the task leader locked while we
  kill all the peer processes so the list is kept coherent.
- When a kthread exits, do a wakeup() on its proc pointers.  This can be
  used by kernel modules that have kthreads and want to ensure they have
  safely exited before completely the MOD_UNLOAD event.

Connectivity provided by:	Usenix wireless
2001-06-27 06:15:44 +00:00
Gregory Neil Shapiro
c1c5db8149 Typo fix: requires -> reacquires
Submitted by:	Murray S. Kucherawy <msk@sendmail.com>
MFC after:	3 days
2001-06-27 06:01:17 +00:00
Dima Dorfman
1807222dac Correct path to wtmp.
PR:		28433
Submitted by:	Joseph Mallett <jmallett@xMach.org>
2001-06-27 06:00:26 +00:00
Jun-ichiro itojun Hagino
60a6ab0e04 openbsd 2.9 (2001/6/1) 2001-06-27 04:41:58 +00:00
Chris Costello
2f05bd957f Remove an extra word "fo" in the sentence "there is no process whose
process ID equals fo pid".

PR:		28436
Submitted by:	Gregory Bond <gnb@itga.com.au>
2001-06-27 04:21:28 +00:00
Mike Heffner
24b9685ca9 Sync manpage and usage. Also fix bug that would always interpret a -c as a
process clear.

PR:	bin/15456
MFC after:	2 weeks
2001-06-27 02:52:57 +00:00
Gregory Neil Shapiro
f87b85b2f0 Typo fix (modifes -> modifies) 2001-06-27 01:48:02 +00:00
Dan Moschuk
4357df37b6 stpo --> stop (typo). 2001-06-26 23:19:45 +00:00
Dima Dorfman
fd8879d3f5 Staticize, constize, de-registerize; don't shadow global definitions;
set WARNS=2.

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-26 22:22:19 +00:00
Joerg Wunsch
a5cef3b45a Now that we've got it, use FDOPT_NOERRLOG for fdformat and fdwrite to
avoid blasting the syslog with error messages from bad floppies.  Both
tools have their own error reporting anyway (which could easily be
cluttered by the syslog output on your terminal).
2001-06-26 22:19:32 +00:00
Joerg Wunsch
8a5f4c1290 Implement the -I option that uses the FD_READID ioctl in order to read
sector ID fields from a floppy, and display them.
2001-06-26 22:17:21 +00:00
Joerg Wunsch
250300ebb0 Implement a new ioctl command for floppies: FD_READID
Reads one sector ID field from a given track.  Useful for analyzing
floppies.
2001-06-26 22:16:30 +00:00
Dima Dorfman
015fadf9d7 Add appropriate includes and prototypes; staticize; set WARNS=2. Also
minor Makefile nits.

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-26 22:11:13 +00:00
Joerg Wunsch
4c34deeecf Some more cosmetics: kill another couple of K&R function definitions
that survived from old days, fix style of return type in fdcpio(),
kill old Emacs hints that are no longer working that way anyway.
2001-06-26 22:07:25 +00:00
Cameron Grant
cd9766c5f8 add a tunable/sysctl, hw.snd.autovchans. if this is set to a value n where
n > 0, n vchans will be assigned to any devices that subsequently register
with a single playback channel.
2001-06-26 21:54:55 +00:00
Warner Losh
a30e186209 Use tabs where tabs are supposed to go! 2001-06-26 20:50:34 +00:00
Warner Losh
4524182d66 Add dell wireless card
Submitted by: keichi
2001-06-26 20:44:27 +00:00
Jens Schweikhardt
9aa042f66c Increase column widths when using -i (they are now wide enough to
hold a 64bit or 32bit ~0 value, i.e. 20 and 10; this anticipates
soon-to-be machines with Exahertz rtc interrupt frequencies. :-)

PR:		bin/16206
Submitted by:	John Capo <jc@irbs.com>
MFC after:	1 week
2001-06-26 18:49:10 +00:00
David E. O'Brien
1b1d481112 Style fix. 2001-06-26 18:32:20 +00:00
David E. O'Brien
f6c9428e6e Add the IA-64 unwind handling (needed for readelf). 2001-06-26 18:29:47 +00:00
David E. O'Brien
b472c4d1c6 This commit was generated by cvs2svn to compensate for changes in r78844,
which included commits to RCS files with non-trunk default branches.
2001-06-26 18:26:26 +00:00
David E. O'Brien
dfb1a3b23c Import of GNU Binutils version 2.11.2. 2001-06-26 18:26:26 +00:00
Dan Moschuk
7644eb97f1 Add support for linksys instant wireless.
Approved by: imp
2001-06-26 18:22:12 +00:00
David E. O'Brien
e3ffd96636 Upgrade to Binutils 2.11.2. 2001-06-26 18:20:46 +00:00
David E. O'Brien
098abe2f2a Merge rev 1.2 (teach `ld' how to access FreeBSD's ld ELF hints)
into Binutils 2.11.2.
2001-06-26 17:57:37 +00:00
David E. O'Brien
9cbaab2ae7 We use the stock (2.11.2) version of this now. 2001-06-26 17:56:02 +00:00
David E. O'Brien
b7c1ed8297 Merge rev 1.2 (FreeBSD configuration support) into Binutils 2.11.2. 2001-06-26 17:54:12 +00:00
David E. O'Brien
f9416573c4 We use the stock (2.11.2) version of this file now. 2001-06-26 17:53:08 +00:00
David E. O'Brien
ac0d11744a Use the stock (2.11.2) version of this now. 2001-06-26 17:51:35 +00:00
David E. O'Brien
bfdc8ef812 Use the vendor's 2.11.2 version of this file as in rev 1.4. 2001-06-26 17:45:23 +00:00
David E. O'Brien
515082a3ff Merge rev 1.2 (configuration changes to support FreeBSD) into Binutils 2.11.2. 2001-06-26 17:44:22 +00:00
David E. O'Brien
937233fdcb Really wish this could back on the vendor branch...
Commit the stock 2.11.2 version.
2001-06-26 17:43:37 +00:00
David E. O'Brien
612f257451 Merge rev 1.6 (only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined
elsewhere) into Binutils 2.11.2.
2001-06-26 17:17:04 +00:00
David E. O'Brien
dd752cf395 Merge rev 1.8 (only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined
elsewhere.) into Binutils 2.11.2.
2001-06-26 17:15:34 +00:00
David E. O'Brien
fdcfb587ca Merge our ELF branding into Binutils 2.11.2. 2001-06-26 17:14:56 +00:00
David E. O'Brien
d4d994956c Upgrade to 2.11.2. 2001-06-26 17:13:11 +00:00
David E. O'Brien
fd66bf0071 Import of GNU Binutils version 2.11.2. 2001-06-26 16:57:43 +00:00
David E. O'Brien
2f5bf4fae2 This commit was generated by cvs2svn to compensate for changes in r78828,
which included commits to RCS files with non-trunk default branches.
2001-06-26 16:57:43 +00:00
Brian Feldman
0c82706bc0 Back out the last change which is probably actually a red herring. Argh! 2001-06-26 15:15:22 +00:00
Brian Feldman
c3e2f3baec Don't pointlessly kill a channel because the first (forced)
non-blocking read returns 0.

Now I can finally tunnel CVSUP again...
2001-06-26 14:17:35 +00:00