Commit Graph

104988 Commits

Author SHA1 Message Date
rwatson
b8ecdf1b3c Introduce a global mtx 'ngsocketlist_mtx' to protect the global
ng_socket list during insert/delete.
2004-07-12 04:45:46 +00:00
marcel
b71b19f0a2 Document the new PT_LWPINFO request. In fact, the request is so new
it hasn't even been implemented yet. I just wanted to be the first
to try a new approach to development ;-)
2004-07-12 04:43:58 +00:00
alc
582e79f50a pmap_remove_pages() must not remove wired mappings. Since
pmap_remove_pages() is an optimization, its implementation is optional.

Discussed with:	grehan
2004-07-12 04:40:26 +00:00
rwatson
5fb9f28d80 Mark 'makeup' in ng_frame_relay as const, as its values are immutable. 2004-07-12 04:35:42 +00:00
rwatson
8d63702565 Remove spl's from netatalk in preparation to merge locking. 2004-07-12 04:33:58 +00:00
tjr
52eae5c050 Call setlocale() with category LC_ALL instead of LC_MESSAGES. We need
LC_CTYPE and LC_COLLATE to correctly interpret regular expressions
returned by nl_langinfo(YESEXPR), and it doesn't hurt to include the
rest.
2004-07-12 04:18:44 +00:00
alfred
45c9fe9da7 Dump the actual bad values when this assertion is tripped. 2004-07-12 04:13:38 +00:00
murray
de2b49b3bc Chase the docproj ports required to build a release with NOPORTS but
without NODOCS.

PR:		ports/68153
Submitted by:	Dmitry Morozovsky <marck@rinet.ru>
2004-07-12 04:09:39 +00:00
alfred
943cc11b6d Make 'S' in interactive mode toggle display of system processes. 2004-07-12 03:00:50 +00:00
tjr
5b15fb7d42 Respect locale settings from the environment. 2004-07-12 02:48:40 +00:00
kientzle
8facf26e5e Update the README notes to include the current list of supported
formats and remove some outdated comments about library limitations.
2004-07-12 01:54:37 +00:00
marcel
c952cbd124 Re-add the gdb command. It was removed to be replaced by something
more generic, but that didn't actually happen. Since the feature to
switch backends (and historically this means from DDB to GDB) is
important, make sure people can do just that until such the generic
mechanism actually sees the light of day.

Suggested by: rwatson@
2004-07-12 01:38:07 +00:00
marcel
bfbf13730c Make kdb_dbbe_select() available as an interface function. This allows
changing the backend from outside the KDB frontend. For example from
within a backend. Rewrite kdb_sysctl_current to make use of this
function as well.
2004-07-12 01:15:55 +00:00
keramida
e8a16db246 Fix a typo that slipped in during my last commit to this file.
Submitted by:   fox@vader.aacc.cc.md.us
2004-07-12 00:45:25 +00:00
rwatson
566f5dc2ee Use sockbuf_pushsync() to synchronize stack and socket buffer state
in soreceive() after removing an MT_SONAME mbuf from the head of the
socket buffer.

When processing MT_CONTROL mbufs in soreceive(), first remove all of
the MT_CONTROL mbufs from the head of the socket buffer to a local
mbuf chain, then feed them into dom_externalize() as a set, which
both avoids thrashing the socket buffer lock when handling multiple
control mbufs, and also avoids races with other threads acting on
the socket buffer when the socket buffer mutex is released to enter
the externalize code.  Existing races that might occur if the protocol
externalize method blocked during processing have also been closed.

Now that we synchronize socket buffer and stack state following
modifications to the socket buffer, turn the manual synchronization
that previously followed control mbuf processing with a set of
assertions.  This can eventually be removed.

The soreceive() code is now substantially more MPSAFE.
2004-07-11 23:13:14 +00:00
phk
7017e4d3c1 Remove the last bits of SPECHASH. 2004-07-11 23:03:37 +00:00
rwatson
00ad513356 Add sockbuf_pushsync(), an inline function that, following a change to
the head of the mbuf chains in a socket buffer, re-synchronizes the
cache pointers used to optimize socket buffer appends.  This will be
used by soreceive() before dropping socket buffer mutexes to make sure
a consistent version of the socket buffer is visible to other threads.

While here, update copyright to account for substantial rewrite of much
socket code required for fine-grained locking.
2004-07-11 22:59:32 +00:00
phk
14f8256a24 Better descriptions of the cdev malloc class and mutex. 2004-07-11 19:26:43 +00:00
cperciva
4ac0cfc416 Whitespace cleanup. This will simplify a future merge from
IANA's official list of port assignments.
2004-07-11 19:20:47 +00:00
rwatson
b6a6909325 Add additional annotations to soreceive(), documenting the effects of
locking on 'nextrecord' and concerns regarding potentially inconsistent
or stale use of socket buffer or stack fields if they aren't carefully
synchronized whenever the socket buffer mutex is released.  Document
that the high-level sblock() prevents races against other readers on
the socket.

Also document the 'type' logic as to how soreceive() guarantees that
it will only return one of normal data or inline out-of-band data.
2004-07-11 18:29:47 +00:00
marcel
62f362bd8f MFi386: rev 1.213 -- fix DELAY while the debugger is active.
This also fixes the (runtime) breakage introduced in the previous
commit that was the result of a botched merge. This hasn't even
been compile-tested...
2004-07-11 18:07:55 +00:00
marcel
841342b02b Partially revert previous commit. Calling getit() unconditionally fixed
a problem that could also be fixed differently without reverting previous
attempts to fix DELAY while the debugger is active (rev 1.204). The bug
was that the i8254 implements a countdown timer, while for (k)db_active
a countup timer was implemented. This resulted in premature termination
and consequently the breakage of DELAY. The fix (relative to rev 1.211)
is to implement a countdown timer for the kdb_active case. As such the
ability to step clock initialization is preserved and DELAY does what is
expected of it.

Blushed: bde :-)
Submitted by: bde
2004-07-11 17:50:59 +00:00
stefanf
e0b2a5b339 Fix a few cases that relied on 'implicit int' (constraint violation in C99). 2004-07-11 17:37:33 +00:00
stefanf
77a4e4e421 Resolve a couple of warnings and bump WARNS to 6. 2004-07-11 17:26:18 +00:00
dfr
2ada7916d4 Expand and rewrite documentation using doxygen markup so that we can
generate funky web pages from it.
2004-07-11 16:17:42 +00:00
dfr
aea0fb6e05 Pass doxygen doc comments through to the output. 2004-07-11 16:14:24 +00:00
dfr
4502cba2fd Experimental support for using doxygen to generate kernel documentation. 2004-07-11 16:13:57 +00:00
darrenr
6c66c4291a Document that sx_unlock() exists as a macro.
Remove redundant include file, <sys/kernel.h>, and clean up the function
list at the top with the addition of a "Sx utility macro" section.
2004-07-11 16:08:25 +00:00
darrenr
210d568a00 Add sx_unlock() macro as a frontend to both sx_sunlock() and sx_xunlock(),
using sx_cnt to determine what state the lock is in and call the respective
function appropriately.
2004-07-11 16:07:07 +00:00
imp
a6214e1123 Until I'm ready to commit the better pccard probe/attach routines, effectively
comment them out.
2004-07-11 16:01:25 +00:00
marcel
9365674e5c Fix braino: Make sure there is a current backend before we return its
name in the debug.kdb.current sysctl. All other dereferences are
properly guarded, but this one was overlooked.

Reported by: Morten Rodal (morten at rodal dot no)
2004-07-11 15:22:43 +00:00
phk
3683e698d2 Introduce ttygone() which indicates that the hardware is detached.
Move dtrwait logic to the generic TTY level.
2004-07-11 15:18:39 +00:00
tjr
f41e48677c Fix document year.
Noticed by:	simon
2004-07-11 15:04:16 +00:00
tjr
466d5d5279 Add fairly standard ENVIRONMENT and DIAGNOSTICS sections. 2004-07-11 14:47:32 +00:00
tjr
53407e8087 Respect locale settings from the environment. 2004-07-11 14:44:23 +00:00
nyan
87af04ca9a MFi386: revision 1.212. 2004-07-11 13:46:10 +00:00
nyan
5a42d7a522 MFi386: revision 1.406 2004-07-11 13:45:39 +00:00
simon
7e6a71731c Fix typo in 20040702 entry.
Noticed by:	Andre Guibert de Bruet <andy@siliconlandmark.com>
2004-07-11 13:26:44 +00:00
darrenr
592d9d0570 Clean up a bunch of white-space difference with IPFilter source as well as
remove some superfluous assignments for .d_version/.d_flags in a cdevsw
structure initialisation that never sees the light of day in FreeBSD.
2004-07-11 10:13:05 +00:00
tjr
db66ea27a0 Remove incomplete support for multi-character collating elements. Remove
unused character category calculations.
2004-07-11 05:58:31 +00:00
marcel
5fd437f0d8 Add 3 new entries:
o  __FreeBSD_version bumped to 502122
o  Alpha console initialization requires the same sio(4) hints as on
   other platforms. Options NO_SIO and DEV_SC removed.
o  KDB framework: Added KDB and GDB; Renamed WITNESS_DDB, DDB_TRACE
   DDB_UNATTENDED. Removed GDB_REMOTE_CHAT and DDB_NOKLDSYM.
2004-07-11 04:38:39 +00:00
marcel
21529ac5fd Bump __FreeBSD_version for the following (weak) reasons:
o  Sources that are shared between kernel and userland and that may
   contain references to DDB or any of its functions may need to
   know this.
o  Userland tools may include <machine/gdb_machdep.h> from now on.
   Think kernel debugger...
o  The kernel core file now contains the TID of the kernel thread
   that made the dump.
2004-07-11 04:05:44 +00:00
marcel
732674ff96 The SC_DISABLE_DDBKEY options has been renamed to SC_DISABLE_KDBKEY. 2004-07-11 03:21:24 +00:00
marcel
f18ce8babb Add options KDB and GDB. KDB takes on the function of what DDB used
to be. Both DDB and GDB specify which KDB backends to include.
2004-07-11 03:20:09 +00:00
marcel
ae133c0e60 Now that the console setup is identical to that on other platforms,
we also need to have the right sio(4) flags:
sio0: flags=0x10 so that it will be console.
sio1: flags=0x80 so that it can be used as debug port.
2004-07-11 03:07:28 +00:00
marcel
1e1397ba13 Add options KDB and GDB. KDB takes on the function of what DDB used
to be. Both DDB and GDB specify which KDB backends to include.
2004-07-11 03:03:48 +00:00
mp
cd89d3f759 KANJI and DSPMBYTE are now "on" by default in the tcsh 6.13.00 distribution. 2004-07-11 02:23:38 +00:00
mp
2062e7c869 Add the nls/*/charset files to the exclude list. These files are not needed
and only provide comments in the text NLS files.
2004-07-11 02:20:52 +00:00
mp
fc6d10ab3e This commit was generated by cvs2svn to compensate for changes in r131962,
which included commits to RCS files with non-trunk default branches.
2004-07-11 02:17:56 +00:00
mp
bbd1addf8f Import of tcsh-6.13.00 2004-07-11 02:17:56 +00:00