]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoWhy doesn't anybody ever tell me anything? When did we get a libsbuf ?
phk [Fri, 21 Mar 2003 17:10:54 +0000 (17:10 +0000)]
Why doesn't anybody ever tell me anything?  When did we get a libsbuf ?

Geeze, I'll just crawl back into the kernel where I know what's going on...

Use libsbuf instead of pulling a file in from the kernel.

Taught by: jhb

21 years agoAdd a sysctl node allowing the specification of an address mask to use
mdodd [Fri, 21 Mar 2003 15:43:06 +0000 (15:43 +0000)]
Add a sysctl node allowing the specification of an address mask to use
when replying to ICMP Address Mask Request packets.

21 years agoAdd comments regarding the ICMP timestamp fields.
mdodd [Fri, 21 Mar 2003 15:28:10 +0000 (15:28 +0000)]
Add comments regarding the ICMP timestamp fields.

21 years agoAssignment could be NULL, check.
mdodd [Fri, 21 Mar 2003 15:13:29 +0000 (15:13 +0000)]
Assignment could be NULL, check.

21 years agoFixed a typo in ${.CURDIR} spelling, fatal on systems
ru [Fri, 21 Mar 2003 14:45:46 +0000 (14:45 +0000)]
Fixed a typo in ${.CURDIR} spelling, fatal on systems
without the /sys symlink pointing to the current tree.
(Revision 1.2 made it non-fatal, but anyway.)

Apply style.Makefile(5).

Fixed ``make checkdpadd''.

21 years agoAdded GEOM library to the bsd.libnames.mk namespace.
ru [Fri, 21 Mar 2003 14:31:51 +0000 (14:31 +0000)]
Added GEOM library to the bsd.libnames.mk namespace.

21 years agoDuh! Use correct number ../
phk [Fri, 21 Mar 2003 14:30:16 +0000 (14:30 +0000)]
Duh!  Use correct number ../

spotted by: imp

21 years agoUse the target arhitecture's disktab(5) file.
ru [Fri, 21 Mar 2003 13:41:17 +0000 (13:41 +0000)]
Use the target arhitecture's disktab(5) file.

21 years agoAdd a target for the creation of a /etc/shells map and add it to
robert [Fri, 21 Mar 2003 11:44:03 +0000 (11:44 +0000)]
Add a target for the creation of a /etc/shells map and add it to
the maps which are built by default.

21 years agoCall endwin() to restore terminal state just before exiting.
keramida [Fri, 21 Mar 2003 09:34:23 +0000 (09:34 +0000)]
Call endwin() to restore terminal state just before exiting.

Approved by: phk

21 years agoFollow new upcall quantum code in kernel.
davidxu [Fri, 21 Mar 2003 08:21:39 +0000 (08:21 +0000)]
Follow new upcall quantum code in kernel.

21 years agoMap VAPPEND to VWRITE in nfsspec_access() - VAPPEND is never set in the
tjr [Fri, 21 Mar 2003 05:13:23 +0000 (05:13 +0000)]
Map VAPPEND to VWRITE in nfsspec_access() - VAPPEND is never set in the
mode returned by VOP_GETATTR. This fixes incorrect "Permission denied"
errors when trying to append to a file on an NFSv2 mount.

21 years agoAttempt to automatically read in kernel module symbols when a live
iedowse [Fri, 21 Mar 2003 00:30:53 +0000 (00:30 +0000)]
Attempt to automatically read in kernel module symbols when a live
or dead kernel core is loaded into gdb. This extends gdb's existing
shared library support, so the "info sharedlibrary", "sharedlibrary"
and "nosharedlibrary" commands can be used to view and change the
list of loaded symbol files.

The current implementation is more than a kludge however, and it
will not always manage to find the .ko.debug file corresponding to
the loaded module. In particular, for modules whose build directory
cannot be easily guessed from the module name such as all the
netgraph modules, the debug version of the .ko will not be found
automatically.

The logic for finding the module file first attempts to guess at
the module build directory by parsing the version[] string. Then
using that directory ($DIR), it tries the following paths in turn:

./<module>.ko.debug ./<module>.ko
$DIR/<module>.ko.debug $DIR/<module>.ko
/boot/kernel/<module>.ko.debug /boot/kernel/<module>.ko

Approved by: obrien, mp

21 years agoPass the target machine architecture down to disklabel(8).
ru [Thu, 20 Mar 2003 23:46:22 +0000 (23:46 +0000)]
Pass the target machine architecture down to disklabel(8).
Do it so that systems without the -m option in disklabel(8),
e.g. 5.0-RELEASE, can still build current snapshots.

While here, drop the -s option from doFS.sh; we have not
been using the .size files for a long time.

21 years agoClean up some warnings that don't result in a change in the object file:
dwmalone [Thu, 20 Mar 2003 22:42:22 +0000 (22:42 +0000)]
Clean up some warnings that don't result in a change in the object file:
Constness, missing prototypes, non-ansi prototypes, missing
initialisers, unnecessary declarations, shadowing.

Reviewed by: md5

21 years agoUse td->td_ucred instead of td->td_proc->p_ucred.
jhb [Thu, 20 Mar 2003 21:17:40 +0000 (21:17 +0000)]
Use td->td_ucred instead of td->td_proc->p_ucred.

21 years agoMinor fixes to ffs_fserr():
jhb [Thu, 20 Mar 2003 21:15:54 +0000 (21:15 +0000)]
Minor fixes to ffs_fserr():
- Assume that curthread is not NULL.  It never is in -current.
- Use td_ucred instead of p_ucred.

21 years agoUse td_ucred of curthread instead of p_ucred of curproc. This required
jhb [Thu, 20 Mar 2003 21:12:31 +0000 (21:12 +0000)]
Use td_ucred of curthread instead of p_ucred of curproc.  This required
changing sem_perm() and sem_hasopen() to take a thread instead of a proc
for the first argument.

21 years agoMerge conflicts
jedgar [Thu, 20 Mar 2003 20:56:03 +0000 (20:56 +0000)]
Merge conflicts

21 years agoExtend CPU_ATHLON_SSE_HACK to cover a few more revisions of Athlon CPUs.
dwmalone [Thu, 20 Mar 2003 20:50:22 +0000 (20:50 +0000)]
Extend CPU_ATHLON_SSE_HACK to cover a few more revisions of Athlon CPUs.

Submitted by: Jon Kuster <kwsn@earthlink.net>
MFC after:    2 weeks

21 years agoAdd a rudimentary gstat(8) to the system.
phk [Thu, 20 Mar 2003 20:48:41 +0000 (20:48 +0000)]
Add a rudimentary gstat(8) to the system.

This is a small curses based program which shows the diskactivity
inside GEOM.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r112439,
jedgar [Thu, 20 Mar 2003 20:41:45 +0000 (20:41 +0000)]
This commit was generated by cvs2svn to compensate for changes in r112439,
which included commits to RCS files with non-trunk default branches.

21 years agoImport of PKCS #1 security fix.
jedgar [Thu, 20 Mar 2003 20:41:45 +0000 (20:41 +0000)]
Import of PKCS #1 security fix.
  http://www.openssl.org/news/secadv_20030319.txt

21 years agoDistinguish between register sets that depend on ac97 caps (wr0, wr1,
orion [Thu, 20 Mar 2003 20:07:18 +0000 (20:07 +0000)]
Distinguish between register sets that depend on ac97 caps (wr0, wr1,
msgd) and those that don't (dxs0-3) when reporting format caps.

21 years agoUse atomic operations to increment and decrement the refcount
mux [Thu, 20 Mar 2003 19:45:26 +0000 (19:45 +0000)]
Use atomic operations to increment and decrement the refcount
in busdma tags.  There are currently no tags shared accross
different drivers so this isn't needed at the moment, but it
will be required when we'll have a proper newbus method to get
the parent busdma tag.

21 years agoNew release/errata notes: SA-03:05.
bmah [Thu, 20 Mar 2003 18:57:30 +0000 (18:57 +0000)]
New release/errata notes:  SA-03:05.

21 years agoCorrect vendor id for ALC101.
orion [Thu, 20 Mar 2003 18:17:39 +0000 (18:17 +0000)]
Correct vendor id for ALC101.

21 years agoAdd a -g option to specify a default login group.
mtm [Thu, 20 Mar 2003 16:36:03 +0000 (16:36 +0000)]
Add a -g option to specify a default login group.

Approved by: markm (mentor)(implicit)

21 years agoAdd support for OpenBSD extensions to the $CVSROOT/config syntax.
des [Thu, 20 Mar 2003 11:05:48 +0000 (11:05 +0000)]
Add support for OpenBSD extensions to the $CVSROOT/config syntax.

Approved by: peter
Obtained from: OpenBSD

21 years agoBackout the getcwd changes, a more comprehensive effort will be needed.
phk [Thu, 20 Mar 2003 10:40:45 +0000 (10:40 +0000)]
Backout the getcwd changes, a more comprehensive effort will be needed.

21 years agoEnable the FPU on first use per-thread and save state across context
grehan [Thu, 20 Mar 2003 10:28:20 +0000 (10:28 +0000)]
Enable the FPU on first use per-thread and save state across context
switches. Not as lazy as it could be. Changing FPU state with sigcontext
still TODO.

fpu.c - convert some asm to inline C, and macroize fpu loads/stores
swtch.S - call out to save/restore fpu routines
trap.c - always call enable_fpu, since this shouldn't be called once
         the FPU has been enabled for a thread
genassym.c - define for pcb fpu flag

21 years ago- Add PCI ID for Paddington i/o controller, used in old G3's
grehan [Thu, 20 Mar 2003 10:18:01 +0000 (10:18 +0000)]
- Add PCI ID for Paddington i/o controller, used in old G3's
- Add ID for the Intrepid i/o controller, used in new 12"/17" PowerBooks
- put IDs in chronological order

21 years agoAccording to C99 decimal_point can't be empty
ache [Thu, 20 Mar 2003 08:18:55 +0000 (08:18 +0000)]
According to C99 decimal_point can't be empty

21 years agoAccording to C99 decimal_point can't be the empty string, mention it.
ache [Thu, 20 Mar 2003 08:13:34 +0000 (08:13 +0000)]
According to C99 decimal_point can't be the empty string, mention it.

21 years agodecimal_point can't be "" according to C99, so set it to standard "."
ache [Thu, 20 Mar 2003 08:05:20 +0000 (08:05 +0000)]
decimal_point can't be "" according to C99, so set it to standard "."
in that case.

21 years agoCorrect typo in function declaration (s/if_dont/if_done).
ceri [Wed, 19 Mar 2003 22:27:21 +0000 (22:27 +0000)]
Correct typo in function declaration (s/if_dont/if_done).

PR: docs/50136
Submitted by: Scott Mitchell <scott+freebsd@fishballoon.org>
MFC After: 4.8

21 years agoThe flags passed in to _ftp_get_proxy may be null
mtm [Wed, 19 Mar 2003 21:39:00 +0000 (21:39 +0000)]
The flags passed in to _ftp_get_proxy may be null

Approved by: des, markm (mentor)(implicit)

21 years agoFix for ia64/48024 - ensure function pointer equality across elf
arun [Wed, 19 Mar 2003 21:38:27 +0000 (21:38 +0000)]
Fix for ia64/48024 - ensure function pointer equality across elf
objects.

Programs such as sshd depend on two pointers to the same function being
equal in a given process. However, the current ia64 implementation
ensures that they're equal when both the pointers are instantiated in
the same ELF object. The attached patch ensures that they're equal
irrespective of where they're instantiated.

Reviewed by marcel@ (mentor) and kan@

21 years agoEnable locale support in strtod() and dtoa().
das [Wed, 19 Mar 2003 20:25:45 +0000 (20:25 +0000)]
Enable locale support in strtod() and dtoa().

Noticed by: ache
Reviewed by: mike (mentor)

21 years agoThis commit was generated by cvs2svn to compensate for changes in r112415,
das [Wed, 19 Mar 2003 20:23:29 +0000 (20:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r112415,
which included commits to RCS files with non-trunk default branches.

21 years agoImport gdtoa sources dated 20030318, which contain several locale fixes.
das [Wed, 19 Mar 2003 20:23:29 +0000 (20:23 +0000)]
Import gdtoa sources dated 20030318, which contain several locale fixes.

Reviewed by: mike (mentor)

21 years agoFix typos
eivind [Wed, 19 Mar 2003 18:21:42 +0000 (18:21 +0000)]
Fix typos

21 years agoFix typo
eivind [Wed, 19 Mar 2003 18:14:47 +0000 (18:14 +0000)]
Fix typo

21 years agoRemove duplicates
eivind [Wed, 19 Mar 2003 17:55:17 +0000 (17:55 +0000)]
Remove duplicates

21 years agoFix typos
eivind [Wed, 19 Mar 2003 17:54:22 +0000 (17:54 +0000)]
Fix typos

21 years agoRefactor two sexual jokes to murphy-o
eivind [Wed, 19 Mar 2003 17:50:59 +0000 (17:50 +0000)]
Refactor two sexual jokes to murphy-o

21 years agoUpdate some more namespaces (forgotten in the previous revision).
mike [Wed, 19 Mar 2003 15:20:02 +0000 (15:20 +0000)]
Update some more namespaces (forgotten in the previous revision).

21 years ago - Revamp the function _nis_initshells() to make getusershell() backed
robert [Wed, 19 Mar 2003 14:17:24 +0000 (14:17 +0000)]
 - Revamp the function _nis_initshells() to make getusershell() backed
   by NIS work, like nsswitch.conf(5) promises to be able to.
   (These modifications will be fed back to NetBSD, of course)
 - In endusershell(), do not set `sl' to NULL if we know it already has
   that value.

21 years agotypo
phk [Wed, 19 Mar 2003 14:15:32 +0000 (14:15 +0000)]
typo

21 years agoFurther unbreak devstat: sort the index array in correct order too.
phk [Wed, 19 Mar 2003 14:11:14 +0000 (14:11 +0000)]
Further unbreak devstat: sort the index array in correct order too.

21 years agoIf realloc(3) fails in copyline(), do not make matters worse by
robert [Wed, 19 Mar 2003 14:01:35 +0000 (14:01 +0000)]
If realloc(3) fails in copyline(), do not make matters worse by
leaving without deallocating `data' thereby creating a memory leak.

21 years agoThe -s option should not assume -U.
tobez [Wed, 19 Mar 2003 10:56:34 +0000 (10:56 +0000)]
The -s option should not assume -U.

MFC After: 2 weeks

21 years agoAdd machine check handler. While generally useful, it's required when
grehan [Wed, 19 Mar 2003 08:33:21 +0000 (08:33 +0000)]
Add machine check handler. While generally useful, it's required when
issuing PCI config cycles on MPC106-based PowerMacs, which cause machine
checks when accessing non-existent/empty slots.

21 years agoo initialize a couple of local flags so the user can re-edit groups
mtm [Wed, 19 Mar 2003 08:07:15 +0000 (08:07 +0000)]
o initialize a couple of local flags so the user can re-edit groups
  next time the subroutine is re-entered
o s/configrun/configflag/
o Make the prompt make sense if the user was creating a configuration file

Approved by: markm (mentor)(implicit)

21 years agoClear channel and tag bits before set them.
simokawa [Wed, 19 Mar 2003 07:04:11 +0000 (07:04 +0000)]
Clear channel and tag bits before set them.
This should fix the problem that if_fwe doesn't work after DV receiving.

21 years ago- Remove unused cache flushing routines. These will not necessary work
jake [Wed, 19 Mar 2003 06:55:37 +0000 (06:55 +0000)]
- Remove unused cache flushing routines.  These will not necessary work
  on future UltraSPARC cpus for which the data cache is not direct mapped.
- Move UltraSPARC I and II (spitfire, blackbird, sapphire, sabre) specific
  functions to spitfire.c, and add cheetah.c for UltraSPARC III specific
  functions.  Initially just cache flushing, but there are a few other
  functions that will need to move here.
- Add an ipi handler for data cache flushing on UltraSPARC III.
- Use function pointers to select the right cache flushing functions based
  on cpu_impl.

With this it is possible to boot single user from an mfs root on UltraSPARC
III systems, including spinning up secondary processors.  There is currently
no support for the host to pci bridge, and no documentation for it is
publically available.

Thanks to Oleg Derevenetz for providing access to a system with UltraSPARC
III+ cpus.

21 years ago- Set cpu_impl early in sparc64_init so that we can use it to detect
jake [Wed, 19 Mar 2003 05:51:21 +0000 (05:51 +0000)]
- Set cpu_impl early in sparc64_init so that we can use it to detect
  UltraSPARC III and higher cpus and do needed setup.
- Disable the "system tick" interrupt for UltraSPARC III.  This avoids
  an interrupt storm on startup since we're not prepared for these at
  all.  This feature has questionable use anyway.
- Clear tick on startup and then leave it alone.

21 years agoAdjust code for userland preemptive. Userland can set a quantum in
davidxu [Wed, 19 Mar 2003 05:49:38 +0000 (05:49 +0000)]
Adjust code for userland preemptive. Userland can set a quantum in
kse_mailbox to schedule an upcall, this is useful for userland timeout
routine, for example pthread_cond_timedwait().

Also extract upcall scheduling code from kse_reassign and create
a new function called thread_switchout to include these code.

Reviewed by: julain

21 years agoRemove a workaround for mysterious junk appearing in the tlb of secondary
jake [Wed, 19 Mar 2003 05:05:08 +0000 (05:05 +0000)]
Remove a workaround for mysterious junk appearing in the tlb of secondary
cpus.  It turned out to be a bug in the loader.

21 years agoImplement db_print_backtrace. This may need to flush out the windows
jake [Wed, 19 Mar 2003 02:58:53 +0000 (02:58 +0000)]
Implement db_print_backtrace.  This may need to flush out the windows
as well.

21 years agoo add missing copyright notices
sam [Wed, 19 Mar 2003 01:53:55 +0000 (01:53 +0000)]
o add missing copyright notices
o new hifnstats program to dump hifn driver statistics
o new ipsecstats program to dump fast ipsec statistics

21 years agoMake sure to free the correct resources when the card fails to attach
silby [Wed, 19 Mar 2003 01:48:14 +0000 (01:48 +0000)]
Make sure to free the correct resources when the card fails to attach
properly.  (Broken in the previous commit.)

Noticed by: "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>

21 years agoAdd birthdays of NetBSD and FreeBSD projects. For the former, take
grog [Wed, 19 Mar 2003 00:58:32 +0000 (00:58 +0000)]
Add birthdays of NetBSD and FreeBSD projects.  For the former, take
the general opinion of the NetBSD community, 21 March 1993.  For the
latter, take David Greenman's first mention of the project name, 19
Jun 1993.

21 years agoUnregisterize, ansify.
des [Wed, 19 Mar 2003 00:49:40 +0000 (00:49 +0000)]
Unregisterize, ansify.

21 years agoRemove an empty comment.
mux [Wed, 19 Mar 2003 00:34:43 +0000 (00:34 +0000)]
Remove an empty comment.

21 years agoWhitespace cleanup.
des [Wed, 19 Mar 2003 00:33:38 +0000 (00:33 +0000)]
Whitespace cleanup.

21 years agolong != int. Use SYSCTL_UINT for kern.devstat.generation. Fixes booting
jake [Tue, 18 Mar 2003 23:32:27 +0000 (23:32 +0000)]
long != int.  Use SYSCTL_UINT for kern.devstat.generation.  Fixes booting
on sparc64.

21 years agoBrucify.
sobomax [Tue, 18 Mar 2003 21:26:28 +0000 (21:26 +0000)]
Brucify.

Requested and reviewed by: bde
MFC after: 2 weeks

21 years agoAdd a -v(erbose) flag to undo our -q(uiet) default.
obrien [Tue, 18 Mar 2003 19:46:55 +0000 (19:46 +0000)]
Add a -v(erbose) flag to undo our -q(uiet) default.

21 years agoFix a race condition in socow_setup(): The page must be wired before
gallatin [Tue, 18 Mar 2003 18:27:33 +0000 (18:27 +0000)]
Fix a race condition in socow_setup(): The page must be wired before
sf_buf_alloc() is called, as sf_buf_alloc() may sleep.  If it does sleep,
the page might be reclaimed before wiring occurs.

Reported by: alc

21 years agoARGH!
phk [Tue, 18 Mar 2003 17:05:27 +0000 (17:05 +0000)]
ARGH!

Pointy hat to: phk

21 years agoCommit ken@' changes to this file: Bump version and append new entries
phk [Tue, 18 Mar 2003 16:44:10 +0000 (16:44 +0000)]
Commit ken@' changes to this file:  Bump version and append new entries
to stay backwards compatible.

21 years agoAdd support for Planex FNW-3800-TX(CardBus 100M/10M).
sanpei [Tue, 18 Mar 2003 14:57:09 +0000 (14:57 +0000)]
Add support for Planex FNW-3800-TX(CardBus 100M/10M).

Submitted by: Kunihiro Arai <araik@attglobal.net>
Obtained from: [bsd-nomads:16625]

21 years agoFix English usage: "for security purpose" -> "for security reasons".
fanf [Tue, 18 Mar 2003 14:24:47 +0000 (14:24 +0000)]
Fix English usage: "for security purpose" -> "for security reasons".

21 years agoThe POSIXly-correct /dev/stdout handling added in rev 1.44 makes
fanf [Tue, 18 Mar 2003 14:19:26 +0000 (14:19 +0000)]
The POSIXly-correct /dev/stdout handling added in rev 1.44 makes
careless users vulnerable to terminal control sequence attacks,
since they expect uudecode to just drop (or overwrite) a file in
the current directory. POSIX also says that the full pathname from
the input should be used when writing a file, which we only do if
the -s (shoot me in the foot) option is specified; therefore this
revision means that you now need to use -s for standard /dev/stdout
handling.

21 years agoportmap_enable -> rpcbind_enable.
maxim [Tue, 18 Mar 2003 14:01:02 +0000 (14:01 +0000)]
portmap_enable -> rpcbind_enable.

Spotted by: Andrew Khlebutin <andreyh@perm.ru>

21 years agoUpdate to match reality closer.
phk [Tue, 18 Mar 2003 13:45:08 +0000 (13:45 +0000)]
Update to match reality closer.

21 years agoShorten the URL to the problem-reports article.
des [Tue, 18 Mar 2003 11:12:14 +0000 (11:12 +0000)]
Shorten the URL to the problem-reports article.

21 years agoAdd more devstat calculations, mostly filling in holes, but also adding
phk [Tue, 18 Mar 2003 09:57:54 +0000 (09:57 +0000)]
Add more devstat calculations, mostly filling in holes, but also adding
a couple of reqests:  DSM_BUSY_PCT and DSM_QUEUE_LENGTH.

I have no further plans for mutilating this API at this point in
time, and will update the man-page to reflect current reality as
the next thing.

Reviewed by:    ken

21 years agoUse devstat instead of GEOM private statistics structure.
phk [Tue, 18 Mar 2003 09:53:46 +0000 (09:53 +0000)]
Use devstat instead of GEOM private statistics structure.

21 years agoMissed in last commit: don't compile now non-existent geom_stats.c
phk [Tue, 18 Mar 2003 09:53:03 +0000 (09:53 +0000)]
Missed in last commit:  don't compile now non-existent geom_stats.c

21 years agoRetire the GEOM private statistics code and use devstat instead.
phk [Tue, 18 Mar 2003 09:42:33 +0000 (09:42 +0000)]
Retire the GEOM private statistics code and use devstat instead.

21 years agoIf devstat_new_entry() is passed a unit number of -1 assume that
phk [Tue, 18 Mar 2003 09:30:31 +0000 (09:30 +0000)]
If devstat_new_entry() is passed a unit number of -1 assume that
the devstat is for an "interior" GEOM node and register using the
name argument as a geom identity pointer.  Do not put these devstat
structures on the list returned by the sysctl.

This gives us the ability to tell the two kinds of nodes apart and
leave the current "strictly physical" view of devstat intact without
modifications, yet be able to use devstat for both kinds of devices.

It also saves us bloating struct devstat with another 48 bytes of
space for the name.  At least for now.

Reviewed by:    ken

21 years agoMake devstat fully Giant agnostic:
phk [Tue, 18 Mar 2003 09:20:20 +0000 (09:20 +0000)]
Make devstat fully Giant agnostic:

Add a mutex and protect the allocation and traversal of the list with it.

When we allocate a page for devstat use we drop the mutex and use
M_WAITOK this is not nice, but under the given circumstances the
best we can do.

In the sysctl handler for returning the devstat entries we do not want to
hold the mutex across copyout(9) calls, so we keep a very careful eye on
the devstat_generation count, and abandon with EBUSY if it changes under
our feet.

Specifically test for BIO_WRITE, rather than default non-read,non-deletes
as write.  Make the default be DEVSTAT_NO_DATA.

Add atomic increments of the sequence[01] fields so applications using the
mmap'ed view stand a chance of detecting updates in progress.

Reviewed by:    ken

21 years agoIncluding <sys/stdint.h> is (almost?) universally only to be able to use
phk [Tue, 18 Mar 2003 08:45:25 +0000 (08:45 +0000)]
Including <sys/stdint.h> is (almost?) universally only to be able to use
%j in printfs, so put a newsted include in <sys/systm.h> where the printf
prototype lives and save everybody else the trouble.

21 years agoRemove unused fields.
jake [Tue, 18 Mar 2003 08:15:24 +0000 (08:15 +0000)]
Remove unused fields.

21 years agoMake devstat_new_entry() take a const void * rather than const char *
phk [Tue, 18 Mar 2003 07:52:59 +0000 (07:52 +0000)]
Make devstat_new_entry() take a const void * rather than const char *
argument, GEOM nodes are not identified by ascii string.

21 years agoInstead of relying on a compile time define to determine whether the xl
silby [Tue, 18 Mar 2003 06:29:51 +0000 (06:29 +0000)]
Instead of relying on a compile time define to determine whether the xl
driver should use port or memory based IO, determine it dynamically
at runtime, preferring MMIO where possible.  This helps us support newer
arches which dislike port based access better.

Tested on i386 & sparc64, with 3c900, 905, 905b, and 905C cards.
(in varying combinations by both jake and myself)

21 years agoo Lucent cards don't seem to like multiple buffers for tx. Use only
imp [Tue, 18 Mar 2003 04:22:42 +0000 (04:22 +0000)]
o Lucent cards don't seem to like multiple buffers for tx.  Use only
  one tx buffer for these cards.  The old driver only used one.  We use
  1 for symbol, and 3 for prism cards.
o Don't do the maximum loops thing in the ISR.  In fact, revert to the
  old interrupt handler.  Lucent cards don't seem to work too well if
  you don't disable/enable interrupts from the card in the ISR.

Between these two changes, Lucent cards suck less.  They work in
autoselect mode only.  And seem to get 1Mbps or 2Mbps only.  Setting a
specific media speed doesn't work, and I've had a few issues even with
these patches.  They turn a former brick into a nearly useful card.

These patches work on the prism 2 and 2.5 PC Card cards that I have.
I've not tested this on PCI cards.  I suspect, but couldn't find
proof, that they were the reason that the ISR was changed so radically
from its FreeBSD roots in NetBSD.  We might need to have a variant ISR
if so.

21 years agoMove symbol reset detection code back into wi_reset. This is a more
imp [Tue, 18 Mar 2003 02:54:39 +0000 (02:54 +0000)]
Move symbol reset detection code back into wi_reset.  This is a more
reliable way to detect if the symbol cards have been reset or not.
This makes symbol cards work better.

Submitted by: deischen

21 years agoAdd DLINK DWL650H
imp [Tue, 18 Mar 2003 02:47:53 +0000 (02:47 +0000)]
Add DLINK DWL650H

From NetBSD by way of deischen

21 years agoAdd SMC 2602W pci card, from a post to mobile@
imp [Tue, 18 Mar 2003 02:45:29 +0000 (02:45 +0000)]
Add SMC 2602W pci card, from a post to mobile@

21 years agoUse %jd and a cast to intmax_t instead of a cast to long.
imp [Tue, 18 Mar 2003 02:40:40 +0000 (02:40 +0000)]
Use %jd and a cast to intmax_t instead of a cast to long.
Minor style nit while I'm here.

21 years agoTag longling_addr as maybe using a bad type, I'm not sure.
imp [Tue, 18 Mar 2003 02:38:33 +0000 (02:38 +0000)]
Tag longling_addr as maybe using a bad type, I'm not sure.

21 years agoRegenerate for 1.45
imp [Tue, 18 Mar 2003 02:37:25 +0000 (02:37 +0000)]
Regenerate for 1.45

21 years agoAdd DLINK DWL650H
imp [Tue, 18 Mar 2003 02:36:54 +0000 (02:36 +0000)]
Add DLINK DWL650H

From NetBSD by way of deichen

21 years agoAttach the kldxref script to the build/install.
cjc [Mon, 17 Mar 2003 23:20:48 +0000 (23:20 +0000)]
Attach the kldxref script to the build/install.

21 years agoA new rc-ng script to build linker.hints files with kldxref(8)
cjc [Mon, 17 Mar 2003 23:15:53 +0000 (23:15 +0000)]
A new rc-ng script to build linker.hints files with kldxref(8)
automatically at boot time. Associated rc.conf(5) knobs and
documentation are included.

21 years agoImproved version of Unix sex.
dcs [Mon, 17 Mar 2003 20:59:50 +0000 (20:59 +0000)]
Improved version of Unix sex.

Submitted by: Chris Wasser <cwasser@shaw.ca>

21 years agoUpdate release note: awk 20030314.
bmah [Mon, 17 Mar 2003 19:22:12 +0000 (19:22 +0000)]
Update release note:  awk 20030314.

MFC:  FILE 3.41.