]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoThere are consumers of rwlocks, inluding our own libc, that depend on
mtm [Wed, 18 Feb 2004 15:30:10 +0000 (15:30 +0000)]
There are consumers of rwlocks, inluding our own libc, that depend on
a PTHREAD_RWLOCK_INITIALIZER to do for rwlocks what
a similarly named symbol does for statically initialized mutexes.
This symbol was dropped in The Open Group Base Specifications Issue 6
and does not exist in IEEE Std 1003.1, 2003, but it should still be
supported for backwards compatibility.

Pointy hat: mtm

20 years agoo Catch up with the mutex priority protocol fixes.
mtm [Wed, 18 Feb 2004 15:26:00 +0000 (15:26 +0000)]
o Catch up with the mutex priority protocol fixes.
o Move pthread_getschedparam() into the same file with it's
  pthread_set* counterpart. Copyright on both files is identical.

20 years agoo Style
mtm [Wed, 18 Feb 2004 15:22:52 +0000 (15:22 +0000)]
o Style
o Instead of checking both the passed in pointer and its value
  for NULL, only check the latter. Any caller that passes in
  a NULL pointer is obviously wrong.

20 years agoo Refactor and, among other things, get rid of insane nesting levels.
mtm [Wed, 18 Feb 2004 15:16:31 +0000 (15:16 +0000)]
o Refactor and, among other things, get rid of insane nesting levels.
o Fix mutex priority protocols. Keep separate counts of priority
  inheritance and protection mutexes to make things easier.
  This will not have much affect since this is only the
  userland side, and the rest involves kernel scheduling.

20 years agoRevamp the statistics code, and switch to a much more compact display
des [Wed, 18 Feb 2004 15:12:00 +0000 (15:12 +0000)]
Revamp the statistics code, and switch to a much more compact display
format.  The old code tried to produce the exact same output as the
pre-libfetch implementation, but I no longer see any value in this.

20 years agoMove the initialization of thread priority to a common function.
mtm [Wed, 18 Feb 2004 15:05:56 +0000 (15:05 +0000)]
Move the initialization of thread priority to a common function.

20 years agoMove the weak references to the top of the file to conform
mtm [Wed, 18 Feb 2004 14:56:20 +0000 (14:56 +0000)]
Move the weak references to the top of the file to conform
to the format of other similar files in libthr.

20 years agoAdd partial support for large (>4GB) files on ext2 filesystems. This
tjr [Wed, 18 Feb 2004 14:08:25 +0000 (14:08 +0000)]
Add partial support for large (>4GB) files on ext2 filesystems. This
support is partial in that it will refuse to create large files on
filesystems that haven't been upgraded to EXT2_DYN_REV or that don't
have the EXT2_FEATURE_RO_COMPAT_LARGE_FILE flag set in the superblock.

MFC after: 2 weeks

20 years agoo Fix a bridge example: sysctl net.inet.ip.forwarding=1 is needless,
maxim [Wed, 18 Feb 2004 08:30:08 +0000 (08:30 +0000)]
o Fix a bridge example: sysctl net.inet.ip.forwarding=1 is needless,
bridge(4) is working on a level below.  Suggest
sysctl net.inet.ip.check_interface=0 instead.

MFC after:      2 weeks

20 years agoAdd "-q" argument to setfmac and setfsmac to allow the patient but
rwatson [Wed, 18 Feb 2004 05:40:15 +0000 (05:40 +0000)]
Add "-q" argument to setfmac and setfsmac to allow the patient but
exhausted reader not to see non-fatal warnings.

20 years agoUse correct thousands separator for the Italian locale.
cperciva [Wed, 18 Feb 2004 05:23:09 +0000 (05:23 +0000)]
Use correct thousands separator for the Italian locale.

PR: misc/54477
Submitted by: Nicola Vitale <nivit@libero.it>
Approved by: rwatson (mentor)
Confirmed by:  #freebsd, Google

20 years agoDon't ignore errors from vfs_allocate_syncvnode.
cperciva [Wed, 18 Feb 2004 05:20:54 +0000 (05:20 +0000)]
Don't ignore errors from vfs_allocate_syncvnode.

PR: kern/18503
Submitted by: Anatoly Vorobey <mellon@pobox.com>
Approved by: rwatson (mentor)

20 years agoMention that kernel environment variables may be configured in
wes [Wed, 18 Feb 2004 05:20:31 +0000 (05:20 +0000)]
Mention that kernel environment variables may be configured in
/boot/loader.conf.  Make the description flow a bit better.

Complaints by: Nate Lawson <nate@root.org>

20 years agoFix misspellings in the freebsd-tips fortunes. The same PR has
cperciva [Wed, 18 Feb 2004 05:18:27 +0000 (05:18 +0000)]
Fix misspellings in the freebsd-tips fortunes.  The same PR has
a patch to mention portupgrade in freebsd-tips as well; I'm not
sure if that belongs here, so I'll leave it for someone else.

PR: misc/37073
Submitted by: Sean Chittenden <sean@chittenden.org>
Approved by: rwatson (mentor)

20 years agoFixed some style bugs (spaces instead of tabs in macro definitions ...).
bde [Wed, 18 Feb 2004 02:56:14 +0000 (02:56 +0000)]
Fixed some style bugs (spaces instead of tabs in macro definitions ...).

20 years agoCheckpoint a hack to enable running i386 libc_r binaries on a 64 bit
peter [Wed, 18 Feb 2004 00:54:17 +0000 (00:54 +0000)]
Checkpoint a hack to enable running i386 libc_r binaries on a 64 bit
kernel.  I'm not happy with it yet - refinements are to come.
This hack allows the kern.ps_strings and kern.usrstack sysctls to respond
to a 32 bit request, such as those coming from emulated i386 binaries.

20 years agoBackout MT_TAG removal (i.e. bring back MT_TAGs) for now, as dummynet is
mlaier [Wed, 18 Feb 2004 00:04:52 +0000 (00:04 +0000)]
Backout MT_TAG removal (i.e. bring back MT_TAGs) for now, as dummynet is
not working properly with the patch in place.

Approved by: bms(mentor)

20 years agoremove dead code
rees [Tue, 17 Feb 2004 22:28:26 +0000 (22:28 +0000)]
remove dead code

Approved by: alfred

20 years agoAdd vector for memmove() (currently aliased to memcpy()) a implement
wpaul [Tue, 17 Feb 2004 21:50:39 +0000 (21:50 +0000)]
Add vector for memmove() (currently aliased to memcpy()) a implement
ExInterlockedAddLargeStatistic().

20 years agoMake the distinction between sysctl kernel environment variables and
wes [Tue, 17 Feb 2004 20:38:49 +0000 (20:38 +0000)]
Make the distinction between sysctl kernel environment variables and
device.hints kernel environment variables when disabling ACPI.

Some users are getting confused when they see hint.acpi.0.disabled.
They are confusing it with a sysctl MIB.

Finally, add a reference for device.hints(5) and kenv(1)
in the "SEE ALSO" section of the man page.

PR: docs/62974
Submitted by: Christian S.J. Peron <maneo@bsdpro.com>

20 years agoDont use the bio_taskqueue if we are in timeout.
sos [Tue, 17 Feb 2004 19:24:11 +0000 (19:24 +0000)]
Dont use the bio_taskqueue if we are in timeout.
Use taskqueue_thread rather than taskqueue_swi (maybe we should have
a taskqueue_ata).

20 years agol2ping(8) should not loose echo data if target does not responds to the ping
emax [Tue, 17 Feb 2004 18:37:12 +0000 (18:37 +0000)]
l2ping(8) should not loose echo data if target does not responds to the ping

Reviewed by: imp (mentor), ru

20 years agoDo not place dirmask in unnamed padding. Move it to the bottom of this
trhodes [Tue, 17 Feb 2004 16:53:41 +0000 (16:53 +0000)]
Do not place dirmask in unnamed padding.  Move it to the bottom of this
list where it should have been added originally.

Prodded by: bde

20 years agoIPSEC and FAST_IPSEC have the same internal API now;
ume [Tue, 17 Feb 2004 14:02:37 +0000 (14:02 +0000)]
IPSEC and FAST_IPSEC have the same internal API now;
so merge these (IPSEC has an extra ipsecstat)

Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>

20 years agoo Be consistent with the declaration: pri -> priority.
maxim [Tue, 17 Feb 2004 13:31:36 +0000 (13:31 +0000)]
o Be consistent with the declaration: pri -> priority.

Spotted by: Dmitry Rzhavin
MFC after: 1 week

20 years agoCorrect a comment.
dwmalone [Tue, 17 Feb 2004 12:30:32 +0000 (12:30 +0000)]
Correct a comment.

Reviewed by: alfred, tanimura

20 years agoBacked out previous commit since it just causes panics unless a special
bde [Tue, 17 Feb 2004 11:11:10 +0000 (11:11 +0000)]
Backed out previous commit since it just causes panics unless a special
value for MSGBUF_SIZE is configured.  MSGBUF_SIZE =
(32768 * bootverbose ? 2 : 1) is always 1 or 2, so there is not enough space
in the buffer for metadata, and blindly using the nonexistent space tends
to cause fatal pagefaults.  I think
MSGBUF_SIZE = (32768 * (bootverbose ? 2 : 1)) would be always 32768 since
bootverbose is only statically initialized to 0 early when MSGBUF_SIZE is
used.  MSGBUF_SIZE = (32768 * ((boothowto & RB_VERBOSE) ? 2 : 1)) should
work, but this belongs in <sys/msgbuf.h> even less than previous versions.
MSGBUF_SIZE shouldn't be a macro.

20 years agoMechanical whistespace cleanup.
des [Tue, 17 Feb 2004 10:21:03 +0000 (10:21 +0000)]
Mechanical whistespace cleanup.

20 years agoRemove configurations which aren't used in production.
des [Tue, 17 Feb 2004 10:02:55 +0000 (10:02 +0000)]
Remove configurations which aren't used in production.

20 years agoWhitespace nit.
des [Tue, 17 Feb 2004 09:59:45 +0000 (09:59 +0000)]
Whitespace nit.

20 years agoIf the "next free cluster" field of the FSInfo block is 0xFFFFFFFF,
tjr [Tue, 17 Feb 2004 08:51:49 +0000 (08:51 +0000)]
If the "next free cluster" field of the FSInfo block is 0xFFFFFFFF,
it means that the correct value is unknown. Since this value is just
a hint to improve performance, initially assume that the first non-reserved
cluster is free, then correct this assumption if necessary before writing
the FSInfo block back to disk.

PR: 62826
MFC after: 2 weeks

20 years agoReport the difference between ufs and ufs2.
grog [Tue, 17 Feb 2004 08:43:05 +0000 (08:43 +0000)]
Report the difference between ufs and ufs2.

Submitted by: "Christian S.J. Peron" <maneo@bsdpro.com>

20 years agoRe-add sio.S, and properly deal with assembler files.
ru [Tue, 17 Feb 2004 07:13:04 +0000 (07:13 +0000)]
Re-add sio.S, and properly deal with assembler files.

Repocopied by: joe

20 years agoOops, use -I${DESTDIR}/usr/include/gnu instead of ... /../../include/gnu
ache [Tue, 17 Feb 2004 05:38:45 +0000 (05:38 +0000)]
Oops, use -I${DESTDIR}/usr/include/gnu instead of ... /../../include/gnu

20 years agoNew release note: pw(8) -H.
bmah [Tue, 17 Feb 2004 05:30:26 +0000 (05:30 +0000)]
New release note:  pw(8) -H.

MFCs noted:  libdisk fix for PC98, killall(8) -e.

20 years agoAdd com5-com8 (cuaa4-cuaa7) to /etc/remote so they are available to
rwatson [Tue, 17 Feb 2004 05:10:12 +0000 (05:10 +0000)]
Add com5-com8 (cuaa4-cuaa7) to /etc/remote so they are available to
tip by default.  On my systems, at least, pccard modems like to turn
up on higher addresses.

20 years agoWhitespace fixes, no content changes. Translators may ignore this
bmah [Tue, 17 Feb 2004 05:08:32 +0000 (05:08 +0000)]
Whitespace fixes, no content changes.  Translators may ignore this
commit.

20 years agoNew release notes: TCP RFC 2385 (TCP-MD5) support, libarchive(3),
bmah [Tue, 17 Feb 2004 05:05:43 +0000 (05:05 +0000)]
New release notes:  TCP RFC 2385 (TCP-MD5) support, libarchive(3),
killall(1) -e, sdpd(8), awk 20040207, GNU readline patches 001-005,
GNU tar renaming, OpenPAM Eelgrass.

20 years agoExplain what console names are valid.
grog [Tue, 17 Feb 2004 04:53:47 +0000 (04:53 +0000)]
Explain what console names are valid.

20 years agoRecognize if the user supplies the full pathname to /dev/console and friends,
grog [Tue, 17 Feb 2004 04:51:06 +0000 (04:51 +0000)]
Recognize if the user supplies the full pathname to /dev/console and friends,
and DTRT.

Explain if he supplies a pathname that is not in /dev.

20 years agoRemove unneeded files
ache [Tue, 17 Feb 2004 03:43:12 +0000 (03:43 +0000)]
Remove unneeded files

20 years agoRemove getopt*.c, we already have compatible getopt_long() in libc
ache [Tue, 17 Feb 2004 03:40:32 +0000 (03:40 +0000)]
Remove getopt*.c, we already have compatible getopt_long() in libc

20 years agoRemove unneeded files
ache [Tue, 17 Feb 2004 03:22:35 +0000 (03:22 +0000)]
Remove unneeded files

20 years agoRemove getopt*.c, we already have compatible getopt_long() in libc
ache [Tue, 17 Feb 2004 03:18:24 +0000 (03:18 +0000)]
Remove getopt*.c, we already have compatible getopt_long() in libc
(cc toolchain use it rarely, so no surprizes should occurse)

20 years agoRemove unneded files
ache [Tue, 17 Feb 2004 02:09:53 +0000 (02:09 +0000)]
Remove unneded files

20 years agoRemove getopt*.c, we already have compatible getopt_long() in libc
ache [Tue, 17 Feb 2004 02:08:03 +0000 (02:08 +0000)]
Remove getopt*.c, we already have compatible getopt_long() in libc

20 years agoRemove unnecessary newlines from errx() arguments.
tjr [Tue, 17 Feb 2004 02:02:18 +0000 (02:02 +0000)]
Remove unnecessary newlines from errx() arguments.

20 years agoRemove getopt*.c, we already have compatible getopt_long() in libc
ache [Tue, 17 Feb 2004 01:59:37 +0000 (01:59 +0000)]
Remove getopt*.c, we already have compatible getopt_long() in libc

20 years agoRemove unneded files
ache [Tue, 17 Feb 2004 01:51:07 +0000 (01:51 +0000)]
Remove unneded files

20 years agoRemove getopt*.c, we already have compatible getopt_long() in libc
ache [Tue, 17 Feb 2004 01:49:20 +0000 (01:49 +0000)]
Remove getopt*.c, we already have compatible getopt_long() in libc

20 years agoRemove unneded files
ache [Tue, 17 Feb 2004 01:41:49 +0000 (01:41 +0000)]
Remove unneded files

20 years agoRemove getopt*.c, we already have compatible getopt_long() in libc
ache [Tue, 17 Feb 2004 01:40:25 +0000 (01:40 +0000)]
Remove getopt*.c, we already have compatible getopt_long() in libc

20 years agoRemove getopt*.c, we already have compatible getopt_long() in libc
ache [Tue, 17 Feb 2004 01:34:53 +0000 (01:34 +0000)]
Remove getopt*.c, we already have compatible getopt_long() in libc

20 years agoRemove files no longer needed
ache [Tue, 17 Feb 2004 01:20:41 +0000 (01:20 +0000)]
Remove files no longer needed

20 years agoRemove files no longer needed
ache [Tue, 17 Feb 2004 01:10:29 +0000 (01:10 +0000)]
Remove files no longer needed

20 years agoRemove getopt*.c, we already have compatible getopt_long() in libc
ache [Tue, 17 Feb 2004 01:08:34 +0000 (01:08 +0000)]
Remove getopt*.c, we already have compatible getopt_long() in libc

20 years agoRemove files no longer needed
ache [Tue, 17 Feb 2004 01:04:18 +0000 (01:04 +0000)]
Remove files no longer needed

20 years agoRemove getopt*.c, we already have getopt_long() in libc
ache [Tue, 17 Feb 2004 00:56:16 +0000 (00:56 +0000)]
Remove getopt*.c, we already have getopt_long() in libc

20 years agogetopt_long() returned 0 (i.e. long options) case not handled, add it
ache [Tue, 17 Feb 2004 00:53:50 +0000 (00:53 +0000)]
getopt_long() returned 0 (i.e. long options) case not handled, add it
(symptom: "bc --quiet" not works while "bc -q" works)

20 years agoThe callrpc call to unmonitor hosts was passing the wrong xdr
alfred [Tue, 17 Feb 2004 00:13:59 +0000 (00:13 +0000)]
The callrpc call to unmonitor hosts was passing the wrong xdr
decode/encode functions for the arguments to the statd unmonitor
call.  Fix it.

20 years agoRemove old explicit -I${DESTDIR}/usr/include/readline
ache [Tue, 17 Feb 2004 00:06:33 +0000 (00:06 +0000)]
Remove old explicit -I${DESTDIR}/usr/include/readline
it is no longer needed

20 years agoFix the AMD64 build: this file shouldn't exist.
obrien [Mon, 16 Feb 2004 23:47:02 +0000 (23:47 +0000)]
Fix the AMD64 build: this file shouldn't exist.

20 years agoSwitch back to regex.h
ache [Mon, 16 Feb 2004 23:46:39 +0000 (23:46 +0000)]
Switch back to regex.h

20 years agoFormally switch back to regex.h (not sure it ever needed here - libgnuregex
ache [Mon, 16 Feb 2004 23:38:37 +0000 (23:38 +0000)]
Formally switch back to regex.h (not sure it ever needed here - libgnuregex
is not used)

20 years agoSwitch back to regex.h and fix error when mismatched regex.h used with
ache [Mon, 16 Feb 2004 23:25:49 +0000 (23:25 +0000)]
Switch back to regex.h and fix error when mismatched regex.h used with
system libgnuregex

20 years agoRemove some more 'makedev' related macros.
le [Mon, 16 Feb 2004 23:14:13 +0000 (23:14 +0000)]
Remove some more 'makedev' related macros.

Approved by:     grog (mentor)

20 years agoAlso remove "makedev" from the online help.
le [Mon, 16 Feb 2004 23:04:52 +0000 (23:04 +0000)]
Also remove "makedev" from the online help.

20 years agoRemove files no longer needed
ache [Mon, 16 Feb 2004 22:56:36 +0000 (22:56 +0000)]
Remove files no longer needed
Switch back to regex.h

20 years ago1) Remove files no longer needed.
ache [Mon, 16 Feb 2004 22:43:05 +0000 (22:43 +0000)]
1) Remove files no longer needed.
2) Switch back to regex.h

20 years agoInstall regex.h under include/gnu
ache [Mon, 16 Feb 2004 22:32:13 +0000 (22:32 +0000)]
Install regex.h under include/gnu

20 years agoAdd "gnu" to the list of subdirs
ache [Mon, 16 Feb 2004 22:23:34 +0000 (22:23 +0000)]
Add "gnu" to the list of subdirs

20 years agoShorten the name of the socket option used to enable TCP-MD5 packet
bms [Mon, 16 Feb 2004 22:21:16 +0000 (22:21 +0000)]
Shorten the name of the socket option used to enable TCP-MD5 packet
treatment.

Submitted by: Vincent Jardin

20 years agoBack out previous commit due to objections.
des [Mon, 16 Feb 2004 21:36:59 +0000 (21:36 +0000)]
Back out previous commit due to objections.

20 years agoBack out previous commit; it doesn't seem to do what I thought it does.
des [Mon, 16 Feb 2004 21:31:14 +0000 (21:31 +0000)]
Back out previous commit; it doesn't seem to do what I thought it does.

20 years agoIncrease the size of MSGBUF_SIZE if booted with -v.
obrien [Mon, 16 Feb 2004 20:42:11 +0000 (20:42 +0000)]
Increase the size of MSGBUF_SIZE if booted with -v.

20 years agoAdd a 'realclean' target, which simply and quickly removes everything
gad [Mon, 16 Feb 2004 20:18:25 +0000 (20:18 +0000)]
Add a 'realclean' target, which simply and quickly removes everything
that was built in previous 'make buildworld' and 'make buildkernel'.  The
target knows enough to run a 'chflags -R 0' and a second 'rm' if the first
'rm' ran into any errors while removing files.

Suggested by: email with Richard Coleman Re: upcoming 64b-time_t changes.
Reviewed by: imp, marcel, and others on -hackers
MFC after: 1 week

20 years agoRemove -Wbad-function-cast. Its main purpose is to catch bugs that we
des [Mon, 16 Feb 2004 20:07:06 +0000 (20:07 +0000)]
Remove -Wbad-function-cast.  Its main purpose is to catch bugs that we
already catch with -Wstrict-prototypes, and it causes spurious warnings
for some perfectly legitimate constructs.

20 years agoDocument the change in M_WAITOK semantics.
des [Mon, 16 Feb 2004 18:46:16 +0000 (18:46 +0000)]
Document the change in M_WAITOK semantics.

20 years agoDon't panic if we fail to satisfy an M_WAITOK request; return 0 instead.
des [Mon, 16 Feb 2004 18:41:58 +0000 (18:41 +0000)]
Don't panic if we fail to satisfy an M_WAITOK request; return 0 instead.
The calling code will either handle that gracefully or cause a page fault.

20 years agoDon't bother storing a result when all you need are the side effects.
des [Mon, 16 Feb 2004 18:38:46 +0000 (18:38 +0000)]
Don't bother storing a result when all you need are the side effects.

20 years agoAvoid code duplication on platforms where int and long are the same size.
des [Mon, 16 Feb 2004 18:37:00 +0000 (18:37 +0000)]
Avoid code duplication on platforms where int and long are the same size.

20 years agoRandom style fixes and a comment update. No functional changes.
des [Mon, 16 Feb 2004 18:19:15 +0000 (18:19 +0000)]
Random style fixes and a comment update.  No functional changes.

20 years agocorrect function name in comment.
ume [Mon, 16 Feb 2004 18:07:53 +0000 (18:07 +0000)]
correct function name in comment.

Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>

20 years agoWe aren't D_TAPE. We aren't anything. The reasons why this was ever set
mjacob [Mon, 16 Feb 2004 17:43:57 +0000 (17:43 +0000)]
We aren't D_TAPE. We aren't anything. The reasons why this was ever set
at all is lost in the mists of time.

20 years agoFix type in a sysctl. It used to be: net.key.prefered_oldsa
guido [Mon, 16 Feb 2004 17:09:53 +0000 (17:09 +0000)]
Fix type in a sysctl. It used to be: net.key.prefered_oldsa
and is corrected to net.key.preferred_oldsa
This makes it consistent with the KAME IPsec implementation.

Approved by: sam

20 years agodon't update outgoing ifp, if ipsec tunnel mode encapsulation
ume [Mon, 16 Feb 2004 17:05:06 +0000 (17:05 +0000)]
don't update outgoing ifp, if ipsec tunnel mode encapsulation
was not made.

Obtained from: KAME

20 years agonuke unused functions.
ume [Mon, 16 Feb 2004 17:02:44 +0000 (17:02 +0000)]
nuke unused functions.

Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>

20 years agowe don't need to include ipsec.h.
ume [Mon, 16 Feb 2004 16:58:48 +0000 (16:58 +0000)]
we don't need to include ipsec.h.

Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>

20 years agoSpell types consistently throughout this file. Do not use the __packed attri...
bms [Mon, 16 Feb 2004 14:40:56 +0000 (14:40 +0000)]
Spell types consistently throughout this file. Do not use the __packed          attribute, as we are often #include'd from userland without <sys/cdefs.h>       in front of us, and it is not strictly necessary.

Noticed by: Sascha Blank

20 years agoDon't pass a pointer to a 'long' to a function that expects an 'int *'.
das [Mon, 16 Feb 2004 10:03:44 +0000 (10:03 +0000)]
Don't pass a pointer to a 'long' to a function that expects an 'int *'.

Submitted by: Roop Nanuwa <roop@hqst.com>
PR: 62615

20 years agoRemove the code and an associated comment for gcc 1.x compatibility
das [Mon, 16 Feb 2004 10:03:02 +0000 (10:03 +0000)]
Remove the code and an associated comment for gcc 1.x compatibility
and fix a typo in the !__GNUC__ case.

20 years agoFix a typo in the !__GNUC__ case and remove an obsolete comment.
das [Mon, 16 Feb 2004 10:02:51 +0000 (10:02 +0000)]
Fix a typo in the !__GNUC__ case and remove an obsolete comment.

20 years agoFix some aliasing problems.
das [Mon, 16 Feb 2004 10:02:40 +0000 (10:02 +0000)]
Fix some aliasing problems.

20 years agoSince DEVFS is mandatory, remove all instances to make_dev*. Keep the
le [Mon, 16 Feb 2004 09:23:59 +0000 (09:23 +0000)]
Since DEVFS is mandatory, remove all instances to make_dev*.  Keep the
"makedev" command for backwards compatibility, but just print out an
informational message (this was the current behaviour, anyway) and remove
it from the documentation.

Approved by:     grog (mentor)

20 years ago- Clean up global data.
simokawa [Mon, 16 Feb 2004 07:25:46 +0000 (07:25 +0000)]
- Clean up global data.
- Force dcons to be the high-level console after dcons_crom
has been attached.
- Add a tunable to be the high-level console.

20 years agoCorrect a long-standing race condition in vm_contig_launder() that could
alc [Mon, 16 Feb 2004 03:43:57 +0000 (03:43 +0000)]
Correct a long-standing race condition in vm_contig_launder() that could
result in a panic "vm_page_cache: caching a dirty page, ...": Access to the
page must be restricted or removed before calling vm_page_cache().  This
race condition is identical in nature to that which was addressed by
vm_pageout.c's revision 1.251 and vm_page.c's revision 1.275.

MFC after: 7 days

20 years agoMore cleanups/fixes for the AMD Am1771 driver:
wpaul [Mon, 16 Feb 2004 02:50:03 +0000 (02:50 +0000)]
More cleanups/fixes for the AMD Am1771 driver:

- When adding new waiting threads to the waitlist for an object,
  use INSERT_LIST_TAIL() instead of INSERT_LIST_HEAD() so that new
  waiters go at the end of the list instead of the beginning. When we
  wake up a synchronization object, only the first waiter is awakened,
  and this needs to be the first thread that actually waited on the object.

- Correct missing semicolon in INSERT_LIST_TAIL() macro.

- Implement lookaside lists correctly. Note that the Am1771 driver
  uses lookaside lists to manage shared memory (i.e. DMAable) buffers
  by specifying its own alloc and free routines. The Microsoft documentation
  says you should avoid doing this, but apparently this did not deter
  the developers at AMD from doing it anyway.

With these changes (which are the result of two straight days of almost
non-stop debugging), I think I finally have the object/thread handling
semantics implemented correctly. The Am1771 driver no longer crashes
unexpectedly during association or bringing the interface up.

20 years agoFix some WARNS:
dwmalone [Sun, 15 Feb 2004 22:48:25 +0000 (22:48 +0000)]
Fix some WARNS:
1) Remove some unused variables.
2) Mark some things aas static or __unused.
3) Cast to make sure we're comparing the same types.

20 years agoRemove an unused variable.
dwmalone [Sun, 15 Feb 2004 22:12:32 +0000 (22:12 +0000)]
Remove an unused variable.

20 years agoFix a few WARNS:
dwmalone [Sun, 15 Feb 2004 22:01:23 +0000 (22:01 +0000)]
Fix a few WARNS:
1) Include string.h for strcpy.
2) Don't make duplicate declaration of dump_file, we now include extern.h.
3) Help out with some constness.
4) Cast to slightly better types in some comparisons.