]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agomdoc(7) police: kill HSBs, add missing comma.
Ruslan Ermilov [Wed, 12 Dec 2001 14:41:53 +0000 (14:41 +0000)]
mdoc(7) police: kill HSBs, add missing comma.

22 years agomdoc(7) police: fix markup.
Ruslan Ermilov [Wed, 12 Dec 2001 14:40:09 +0000 (14:40 +0000)]
mdoc(7) police: fix markup.

22 years agomdoc(7) police: Minor formatting nits and optimizations to rev. 1.34.
Ruslan Ermilov [Wed, 12 Dec 2001 14:36:28 +0000 (14:36 +0000)]
mdoc(7) police: Minor formatting nits and optimizations to rev. 1.34.

22 years agoMFi386: revision 1.35 (Add support for writing to BIOS disks)
Yoshihiro Takahashi [Wed, 12 Dec 2001 13:47:04 +0000 (13:47 +0000)]
MFi386: revision 1.35 (Add support for writing to BIOS disks)

22 years agomdoc(7) police: use no-break space.
Ruslan Ermilov [Wed, 12 Dec 2001 13:46:15 +0000 (13:46 +0000)]
mdoc(7) police: use no-break space.

22 years agomdoc(7) police: use no-break space, fix markup.
Ruslan Ermilov [Wed, 12 Dec 2001 13:45:35 +0000 (13:45 +0000)]
mdoc(7) police: use no-break space, fix markup.

22 years agomdoc(7) police: use non-break space, remove whitespace at EOL, fix markup.
Ruslan Ermilov [Wed, 12 Dec 2001 13:42:25 +0000 (13:42 +0000)]
mdoc(7) police: use non-break space, remove whitespace at EOL, fix markup.

22 years agoMFi386: revision 1.485 (the previous commit is not completely)
Yoshihiro Takahashi [Wed, 12 Dec 2001 12:27:59 +0000 (12:27 +0000)]
MFi386: revision 1.485 (the previous commit is not completely)

22 years agoSet the script_name_sep variable to a safe value if it is not
Peter Pentchev [Wed, 12 Dec 2001 10:12:20 +0000 (10:12 +0000)]
Set the script_name_sep variable to a safe value if it is not
already set (e.g. a failed/skipped mergemaster run during an upgrade).
Without this, if script_name_sep was not set in the rc.conf files,
local scripts will not be executed on startup or shutdown.

PR: misc/32687
Submitted by: Nicholas Paufler <echofox@discordia.ca> (the problem)
Sheldon Hearn (the idea behind the fix)
Reviewed by: sheldonh
MFC after: 1 week

22 years agoConnect libiconv to the build.
Sheldon Hearn [Wed, 12 Dec 2001 10:11:16 +0000 (10:11 +0000)]
Connect libiconv to the build.

Recent work by fjoe and bp has fixed smbfs.  The smbfs module
can now be loaded once libiconv and libmchain have been loaded,
and works!

22 years agoUnix: Just Say No..
Wilko Bulte [Wed, 12 Dec 2001 09:49:02 +0000 (09:49 +0000)]
Unix: Just Say No..

Obtained from: Jan.Hendriks@Compaq.com
MFC after: 3 days

22 years agoFix select on named pipes without a reader.
Alfred Perlstein [Wed, 12 Dec 2001 09:35:33 +0000 (09:35 +0000)]
Fix select on named pipes without a reader.

PR: kern/19871
MFC after: 1 month

22 years agoMore "const" poisoning, and only use NO_WERROR if we're bootstrapping.
Ruslan Ermilov [Wed, 12 Dec 2001 08:49:51 +0000 (08:49 +0000)]
More "const" poisoning, and only use NO_WERROR if we're bootstrapping.

22 years agoAxe an unneeded PCPU_SET(spinlocks, NULL) that I missed earlier.
John Baldwin [Wed, 12 Dec 2001 08:07:41 +0000 (08:07 +0000)]
Axe an unneeded PCPU_SET(spinlocks, NULL) that I missed earlier.

22 years agoFix a number of subtle and evil bugs in the libc_r wrapping of sendfile(2).
Alfred Perlstein [Wed, 12 Dec 2001 08:02:24 +0000 (08:02 +0000)]
Fix a number of subtle and evil bugs in the libc_r wrapping of sendfile(2).

o) Since we unwrap the sendfile syscall, check the return value of
   writev(2) to see if it didn't complete all the data.
   Previously if only a partial writev() succeeded, it would proceed
   to sendfile(2) even though the headers weren't completely sent.

o) Properly adjust the "bytes to send" to take into account sendfile(2)'s
   behaviour of counting the headers against the bytes to be transfered
   from the file.

o) Correct the problem where EAGAIN was being returned from _sys_sendfile(2)
   however the wrapper didn't update the 'sent bytes' parameter to take into
   account for it.  This is because sendfile can return EAGAIN even though
   it has actually transfered data.

Special thanks to Justin Erenkrantz <jerenkrantz@apache.org> for bringing
this to my attention and giving an excellent way to reproduce the problem.

PR: kern/32684
MFC After: 1 week

22 years ago- Fix sysctl mib examples in order to reflect the recent changes in
Andrew R. Reiter [Wed, 12 Dec 2001 05:28:42 +0000 (05:28 +0000)]
- Fix sysctl mib examples in order to reflect the recent changes in
  kern_jail.c

Approved by:  rwatson
Reviewed by: rwatson

22 years ago- Update the sysctl mibs in order to reflect the recent kern_jail.c
Andrew R. Reiter [Wed, 12 Dec 2001 05:24:50 +0000 (05:24 +0000)]
- Update the sysctl mibs in order to reflect the recent kern_jail.c
  changes.

Approved by: rwatson
Reviewed by: rwatson

22 years ago- Move _jail sysctl node underneath _kern_security in order to standardize
Andrew R. Reiter [Wed, 12 Dec 2001 05:23:20 +0000 (05:23 +0000)]
- Move _jail sysctl node underneath _kern_security in order to standardize
  where our security related sysctl tuneables are located.  Also, this
  will help if/when we move _security node out from under _kern as to help
  make _kern less cluttered.

Approved by: rwatson
Review by: rwatson

22 years agoWARNS=2 fixes with NO_WERROR set, as there are some header issues
Mark Murray [Wed, 12 Dec 2001 00:13:37 +0000 (00:13 +0000)]
WARNS=2 fixes with NO_WERROR set, as there are some header issues
with namelists. use __FBSDID().

22 years agoRemove WARNS?=2 and -Wall. WARNS?=2 is going to be the default.
Mark Murray [Wed, 12 Dec 2001 00:06:52 +0000 (00:06 +0000)]
Remove WARNS?=2 and -Wall. WARNS?=2 is going to be the default.

22 years agoProtect this against the coming WARNS=2 default.
Mark Murray [Wed, 12 Dec 2001 00:05:16 +0000 (00:05 +0000)]
Protect this against the coming WARNS=2 default.

22 years agoWARNS=2 fixes, use __FBSDID().
Mark Murray [Wed, 12 Dec 2001 00:01:16 +0000 (00:01 +0000)]
WARNS=2 fixes, use __FBSDID().

22 years agoMake manpage links for 5.0-CURRENT release documents explicitly access the
Bruce A. Mah [Tue, 11 Dec 2001 23:55:41 +0000 (23:55 +0000)]
Make manpage links for 5.0-CURRENT release documents explicitly access the
FreeBSD 5.0-CURRENT manpages on the Web site, instead of pointing at
the (possibly wrong) default manpages.

MFC after: 3 days

22 years agoWARNS=2 fixes with NO_WERROR set because of system-header originating
Mark Murray [Tue, 11 Dec 2001 23:51:14 +0000 (23:51 +0000)]
WARNS=2 fixes with NO_WERROR set because of system-header originating
warnings. Use __FBSDID().

22 years agoWARNS=2 fixes. use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 23:44:53 +0000 (23:44 +0000)]
WARNS=2 fixes. use __FBSDID().

22 years agoWARNS=2 fixes. NO_WERROR set as there are some hard-to-fix
Mark Murray [Tue, 11 Dec 2001 23:43:15 +0000 (23:43 +0000)]
WARNS=2 fixes. NO_WERROR set as there are some hard-to-fix
signed/unsigned comparisons. Use __FBSDID().

22 years agoWARNS=2 fixes, use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 23:39:38 +0000 (23:39 +0000)]
WARNS=2 fixes, use __FBSDID().

22 years agoWARNS=2 is going to be the default, so don't specify it. Use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 23:38:24 +0000 (23:38 +0000)]
WARNS=2 is going to be the default, so don't specify it. Use __FBSDID().

22 years agoWARNS=2 fixes, use __FBSDID(), kill register keyword.
Mark Murray [Tue, 11 Dec 2001 23:36:25 +0000 (23:36 +0000)]
WARNS=2 fixes, use __FBSDID(), kill register keyword.

22 years agoPartial WARNS=1 fizes with NO_WERROR set to prevent world breakage.
Mark Murray [Tue, 11 Dec 2001 23:34:02 +0000 (23:34 +0000)]
Partial WARNS=1 fizes with NO_WERROR set to prevent world breakage.
Use __FBSDID().

22 years agoOverhaul the per-CPU support a bit:
John Baldwin [Tue, 11 Dec 2001 23:33:44 +0000 (23:33 +0000)]
Overhaul the per-CPU support a bit:

- The MI portions of struct globaldata have been consolidated into a MI
  struct pcpu.  The MD per-CPU data are specified via a macro defined in
  machine/pcpu.h.  A macro was chosen over a struct mdpcpu so that the
  interface would be cleaner (PCPU_GET(my_md_field) vs.
  PCPU_GET(md.md_my_md_field)).
- All references to globaldata are changed to pcpu instead.  In a UP kernel,
  this data was stored as global variables which is where the original name
  came from.  In an SMP world this data is per-CPU and ideally private to each
  CPU outside of the context of debuggers.  This also included combining
  machine/globaldata.h and machine/globals.h into machine/pcpu.h.
- The pointer to the thread using the FPU on i386 was renamed from
  npxthread to fpcurthread to be identical with other architectures.
- Make the show pcpu ddb command MI with a MD callout to display MD
  fields.
- The globaldata_register() function was renamed to pcpu_init() and now
  init's MI fields of a struct pcpu in addition to registering it with
  the internal array and list.
- A pcpu_destroy() function was added to remove a struct pcpu from the
  internal array and list.

Tested on: alpha, i386
Reviewed by: peter, jake

22 years agoWARNS=2 fixes, use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 23:29:45 +0000 (23:29 +0000)]
WARNS=2 fixes, use __FBSDID().

22 years agoWARNS=2 is going to become the default, so remove it from here.
Mark Murray [Tue, 11 Dec 2001 23:27:23 +0000 (23:27 +0000)]
WARNS=2 is going to become the default, so remove it from here.

22 years agoWARNS=2 fixes.
Mark Murray [Tue, 11 Dec 2001 23:25:13 +0000 (23:25 +0000)]
WARNS=2 fixes.

22 years agoWARNS=2 fixes, use __FBSDID(), kill register keyword.
Mark Murray [Tue, 11 Dec 2001 23:20:23 +0000 (23:20 +0000)]
WARNS=2 fixes, use __FBSDID(), kill register keyword.

22 years agoWARNS=2 is to become the default, so remove. Use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 23:18:25 +0000 (23:18 +0000)]
WARNS=2 is to become the default, so remove. Use __FBSDID().

22 years agoWARNS=2 fixes, use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 23:16:25 +0000 (23:16 +0000)]
WARNS=2 fixes, use __FBSDID().

22 years agoWARNS=2 is to become the default, so remove it from here.
Mark Murray [Tue, 11 Dec 2001 23:14:43 +0000 (23:14 +0000)]
WARNS=2 is to become the default, so remove it from here.

22 years agoProtect this from the coming WARNS=2 default.
Mark Murray [Tue, 11 Dec 2001 23:12:44 +0000 (23:12 +0000)]
Protect this from the coming WARNS=2 default.

22 years agoWARNS=2 fix, kill register keyword, use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 23:10:26 +0000 (23:10 +0000)]
WARNS=2 fix, kill register keyword, use __FBSDID().

NO_WERROR set because of hard-to-fix warnings originating in
system headers.

22 years agoProtect this against the to-come WARNS=2 default.
Mark Murray [Tue, 11 Dec 2001 23:05:06 +0000 (23:05 +0000)]
Protect this against the to-come WARNS=2 default.

22 years agoWARNS=2 fix, add externs.h to centralise external prototypes,
Mark Murray [Tue, 11 Dec 2001 23:02:44 +0000 (23:02 +0000)]
WARNS=2 fix, add externs.h to centralise external prototypes,
use __FBSDID(), kill register keyword.

22 years agoWARNS=2 fixes, but set NO_WERROR, as there are some HardToFix(tm)
Mark Murray [Tue, 11 Dec 2001 22:59:36 +0000 (22:59 +0000)]
WARNS=2 fixes, but set NO_WERROR, as there are some HardToFix(tm)
warnings originating in system headers.

22 years agoRemove WARNS=2 as this is to become default.
Mark Murray [Tue, 11 Dec 2001 22:56:05 +0000 (22:56 +0000)]
Remove WARNS=2 as this is to become default.

22 years agoWARNS=2 fixes, use __FBSDID(), kill register keyword.
Mark Murray [Tue, 11 Dec 2001 22:54:36 +0000 (22:54 +0000)]
WARNS=2 fixes, use __FBSDID(), kill register keyword.

22 years agoWARNS=2 fixes.
Mark Murray [Tue, 11 Dec 2001 22:52:36 +0000 (22:52 +0000)]
WARNS=2 fixes.

22 years agoWARNS=2, use __FBSDID(), set NO_WERROR, as there are "dirty" files used
Mark Murray [Tue, 11 Dec 2001 22:46:42 +0000 (22:46 +0000)]
WARNS=2, use __FBSDID(), set NO_WERROR, as there are "dirty" files used
during the bootstrap phase.

22 years agoWARNS=2 fixes, remove register keyword, use __FBSDID()
Mark Murray [Tue, 11 Dec 2001 22:36:26 +0000 (22:36 +0000)]
WARNS=2 fixes, remove register keyword, use __FBSDID()

22 years ago- Improve line-wrapping and spacing so as to improve readability.
Robert Watson [Tue, 11 Dec 2001 22:36:10 +0000 (22:36 +0000)]
- Improve line-wrapping and spacing so as to improve readability.
- Add instructions regarding replacing 'my.domain', as this has come up
  on freebsd-questions.
- Remove reference to rs.internic.net/templates, as that directory no
  longer exists.  Instead, encourage them gently to talk to their network
  provider.

MFC after: 1 week

22 years agoWARNS=2 fixes, use __FBSDID(), kill register keyword.
Mark Murray [Tue, 11 Dec 2001 22:34:38 +0000 (22:34 +0000)]
WARNS=2 fixes, use __FBSDID(), kill register keyword.

22 years agoTemporarily "protect" this against the coming WARNS=2 default as it
Mark Murray [Tue, 11 Dec 2001 22:33:11 +0000 (22:33 +0000)]
Temporarily "protect" this against the coming WARNS=2 default as it
is "hard to fix" (meaning I will come back to fix it if nobody gets
there first).

22 years agoRemove WARNS=2 as this is to be the default.
Mark Murray [Tue, 11 Dec 2001 22:31:01 +0000 (22:31 +0000)]
Remove WARNS=2 as this is to be the default.

22 years agoWARNS=2 fix, use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 22:29:53 +0000 (22:29 +0000)]
WARNS=2 fix, use __FBSDID().

WARNS=2 is not in Makefile, as this will be the default.

22 years agoUse FBSDID(), WARNS=2 fix.
Mark Murray [Tue, 11 Dec 2001 22:27:26 +0000 (22:27 +0000)]
Use FBSDID(), WARNS=2 fix.

Mkaefile does not use WARNS=2 beacuse this will be made default.

22 years agoUse __FBSDID(). remove WARNS=2 as this is going to be default.
Mark Murray [Tue, 11 Dec 2001 22:25:43 +0000 (22:25 +0000)]
Use __FBSDID(). remove WARNS=2 as this is going to be default.

22 years agoWARNS=2 fix, use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 22:23:53 +0000 (22:23 +0000)]
WARNS=2 fix, use __FBSDID().

Not added to Makefgile as WARNS=2 will be made default.

22 years agoWARNS=2 fix, use __FBSDID().
Mark Murray [Tue, 11 Dec 2001 22:22:15 +0000 (22:22 +0000)]
WARNS=2 fix, use __FBSDID().

Not added to Makefile as WARNS=2 will be made default.

22 years agoWARNS=2 fix, use __FBSDID() and sort includes.
Mark Murray [Tue, 11 Dec 2001 22:18:47 +0000 (22:18 +0000)]
WARNS=2 fix, use __FBSDID() and sort includes.

WARNS=2 not added to Makefile as it is to become default.

22 years agoWARNS=2 fix, but do not set this im Makefile, because this ill be the
Mark Murray [Tue, 11 Dec 2001 22:13:02 +0000 (22:13 +0000)]
WARNS=2 fix, but do not set this im Makefile, because this ill be the
default for src/usr.bin/

22 years agoWARNS=2 fixes
Mark Murray [Tue, 11 Dec 2001 22:08:58 +0000 (22:08 +0000)]
WARNS=2 fixes
__FBSDID() additions
some include file sorting.
Some Makefile sorting.

WARNS?=2 is not added to the Makefile, because it is going to be
default for usr.bin/
NO_WERROR is set because there are rpc*.h file issues.

22 years agoExplicitly decode GetAllNext SNS Response back *as*
Matt Jacob [Tue, 11 Dec 2001 21:58:04 +0000 (21:58 +0000)]
Explicitly decode GetAllNext SNS Response back *as*
a GetAllNext response. Otherwise, we won't unswizzle
it correctly. This was found on linux/PPC.

This mandated creating another inline: isp_get_gan_response.

22 years agoAdd VOP_GETEXTATTR(9) passthrough support to pseudofs.
Brian Feldman [Tue, 11 Dec 2001 20:48:20 +0000 (20:48 +0000)]
Add VOP_GETEXTATTR(9) passthrough support to pseudofs.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoRemove an obsolete prototype for procfs_kmemaccess().
Dag-Erling Smørgrav [Tue, 11 Dec 2001 19:07:10 +0000 (19:07 +0000)]
Remove an obsolete prototype for procfs_kmemaccess().

Submitted by: rwatson

22 years agospelling
Philippe Charnier [Tue, 11 Dec 2001 18:36:29 +0000 (18:36 +0000)]
spelling
move some err() calls to errx() when message explains the pb enough
do not set errno just before exiting the program
lowercase errx() strings

22 years agoSpelling
Philippe Charnier [Tue, 11 Dec 2001 18:24:59 +0000 (18:24 +0000)]
Spelling

22 years agoDo not dot terminate errx() strings
Philippe Charnier [Tue, 11 Dec 2001 18:22:01 +0000 (18:22 +0000)]
Do not dot terminate errx() strings

22 years agoAdd aliases pointing to postmaster for the two new mail related accounts.
Gregory Neil Shapiro [Tue, 11 Dec 2001 17:29:57 +0000 (17:29 +0000)]
Add aliases pointing to postmaster for the two new mail related accounts.

Reminded by: sheldonh
MFC after: 3 days

22 years agoGet rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.
Alexey Zelkin [Tue, 11 Dec 2001 16:38:33 +0000 (16:38 +0000)]
Get rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.

We'll never install math.h wrapped by this define since msun's math.h
is using, so it should be removed from the source tree at some point
(after merge of useful stuff to msun's math.h which is installing now
to /usr/include)

Reviewed by:    bde

22 years agoUpdate the default newfs block and fragment sizes from 8192/1024 to
Sheldon Hearn [Tue, 11 Dec 2001 16:21:40 +0000 (16:21 +0000)]
Update the default newfs block and fragment sizes from 8192/1024 to
16384/2048.

Following recent discussions on the -arch mailing list, involving dillon
and mckusick, this change parallels the one made over a decade ago when
the default was bumped up from 4096/512.

This should provide significant performance improvements for most
folks, less significant performance losses for a few folks and
wasted space lost to large fragments for many folks.

For discussion, please see the following thread in the -arch archive:

Subject: Using a larger block size on large filesystems

The discussion ceases to be relevant when the issue of partitioning
schemes is raised.

22 years agoGet rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.
Alexey Zelkin [Tue, 11 Dec 2001 16:10:26 +0000 (16:10 +0000)]
Get rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.
Also replace internal make variable _libm with hardcoded path to lib/msun

Reviewed by: bde

22 years agoAdd my e-mail to copyrights
Alexey Zelkin [Tue, 11 Dec 2001 16:00:47 +0000 (16:00 +0000)]
Add my e-mail to copyrights

22 years ago* Add my e-mail to copyrights
Alexey Zelkin [Tue, 11 Dec 2001 15:55:42 +0000 (15:55 +0000)]
* Add my e-mail to copyrights
* style(9)'ify

22 years agoFix grouping string handling
Alexey Zelkin [Tue, 11 Dec 2001 15:26:36 +0000 (15:26 +0000)]
Fix grouping string handling

22 years agoPreserve directory timestamps with -p. Allow non-empty read-only
Stephen McKay [Tue, 11 Dec 2001 13:18:10 +0000 (13:18 +0000)]
Preserve directory timestamps with -p.  Allow non-empty read-only
directories to be copied.  Apply umask to newly created directories
when -p is not specified.

PR: 27970
PR: 31633

MFC after: 4 days

22 years agoFix a typo.
Sheldon Hearn [Tue, 11 Dec 2001 13:14:48 +0000 (13:14 +0000)]
Fix a typo.

Reported by: Jurrien Koopmans <jjkoopmans@home.nl>

22 years agoTypo in warning message (chown should be chmod).
Stephen McKay [Tue, 11 Dec 2001 13:14:15 +0000 (13:14 +0000)]
Typo in warning message (chown should be chmod).

22 years agoCorrect a comment that should have been updated in rev 1.43, when
Sheldon Hearn [Tue, 11 Dec 2001 11:49:58 +0000 (11:49 +0000)]
Correct a comment that should have been updated in rev 1.43, when
CIRCLEQ was removed.

PR: kern/32688
Submitted by: Jordan DeLong <fracture@allusion.net>

22 years agoFix boot -p for DDBless kernels
Guido van Rooij [Tue, 11 Dec 2001 10:21:26 +0000 (10:21 +0000)]
Fix boot -p for DDBless kernels

Pointed out by: John Hay <jhay@icomtek.csir.co.za>

22 years agos/sysctl -w/sysctl/
Ruslan Ermilov [Tue, 11 Dec 2001 08:29:10 +0000 (08:29 +0000)]
s/sysctl -w/sysctl/

22 years agos/sysctl -w/sysctl/
Ruslan Ermilov [Tue, 11 Dec 2001 08:21:46 +0000 (08:21 +0000)]
s/sysctl -w/sysctl/

22 years ago(repeat after me, do not do cvs commit | more. Previous commit was:)
Peter Wemm [Tue, 11 Dec 2001 07:08:43 +0000 (07:08 +0000)]
(repeat after me, do not do cvs commit | more.  Previous commit was:)

Do not compile in VM_MAXUSER_ADDRESS into gdb.  This causes problems if
kvm extends into the user address space.
Also, print IdlePTD and initial pcb value clearly in hex instead of
one in decimal and the other hex (without 0x, so an all-numeric hex
number could easily be decimal)

(This isn't used on alpha/kvm-fbsd.c)

22 years ago*** empty log message ***
Peter Wemm [Tue, 11 Dec 2001 07:04:48 +0000 (07:04 +0000)]
*** empty log message ***

22 years agoWARNS=2 cleanup.
Mike Heffner [Tue, 11 Dec 2001 06:44:29 +0000 (06:44 +0000)]
WARNS=2 cleanup.

Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks

22 years agoWrap Dangerously Dedicated printf under if (bootverbose)
Peter Wemm [Tue, 11 Dec 2001 05:35:43 +0000 (05:35 +0000)]
Wrap Dangerously Dedicated printf under if (bootverbose)

22 years agoAvoid an unnecessary copy of a packet if it is already in a single mbuf.
Luigi Rizzo [Tue, 11 Dec 2001 02:47:53 +0000 (02:47 +0000)]
Avoid an unnecessary copy of a packet if it is already in a single mbuf.
Introduce an additional device flag for those NICs which require the
transmit buffers to be aligned to 32-bit boundaries.

(the equivalen fix for STABLE is slightly simpler because there are
no supported chips which require this alignment there.)

22 years agoDelete some leftover code from a bygone age. We dont have an array of
Peter Wemm [Tue, 11 Dec 2001 01:17:40 +0000 (01:17 +0000)]
Delete some leftover code from a bygone age.  We dont have an array of
IdlePTDS anymore and dont to the PTD[MPPTDI] swapping etc.

22 years ago- Add 'fwrite' and 'fseek' words for writing to and seeking on files.
John Baldwin [Tue, 11 Dec 2001 00:49:34 +0000 (00:49 +0000)]
- Add 'fwrite' and 'fseek' words for writing to and seeking on files.
- Change the 'fopen' keyword to accept a mode parameter.  Note that this
  will break existing 4th scripts that use fopen.  Thus, the loader
  version has been bumped and loader.4th has been changed to check for a
  sufficient version on i386 and alpha.  Be sure that you either do a full
  world build or install or full build and install of sys/boot after this
  since loader.old won't work with the new 4th files and vice versa.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoMajor restructuring for swizzling to the request queue and unswizzling from
Matt Jacob [Tue, 11 Dec 2001 00:18:45 +0000 (00:18 +0000)]
Major restructuring for swizzling to the request queue and unswizzling from
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have
a complete set of inline functions in isp_inline.h. Each platform is
responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32}
macros.

The reason this needs to be done is that we need to have a single set of
functions that will work correctly on multiple architectures for both little
and big endian machines. It also needs to work correctly in the case that
we have the request or response queues in memory that has to be treated
specially (e.g., have ddi_dma_sync called on it for Solaris after we update
it or before we read from it). It also has to handle the SBus cards (for
platforms that have them) which, while on a Big Endian machine, do *not*
require *most* of the request/response queue entry fields to be swizzled
or unswizzled.

One thing that falls out of this is that we no longer build requests in the
request queue itself. Instead, we build the request locally (e.g., on the
stack) and then as part of the swizzling operation, copy it to the request
queue entry we've allocated. I thought long and hard about whether this was
too expensive a change to make as it in a lot of cases requires an extra
copy. On balance, the flexbility is worth it. With any luck, the entry that
we build locally stays in a processor writeback cache (after all, it's only
64 bytes) so that the cost of actually flushing it to the memory area that is
the shared queue with the PCI device is not all that expensive. We may examine
this again and try to get clever in the future to try and avoid copies.

Another change that falls out of this is that MEMORYBARRIER should be taken
a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the
entry being added. But there had been many other places this had been missing.
It's now very important that it be done.

Additional changes:

Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry,
the iptr value that gets returned is the value we intend to eventually plug
into the ISP registers as the entry *one past* the last one we've written-
*not* the current entry we're updating. All along we've been calling sync
functions on the wrong index value. Argh. The 'fix' here is to rename all
'iptr' variables as 'nxti' to remember that this is the 'next' pointer-
not the current pointer.

Devote a single bit to mboxbsy- and set aside bits for output mbox registers
that we need to pick up- we can have at least one command which does not
have any defined output registers (MBOX_EXECUTE_FIRMWARE).

MFC after: 2 weeks

22 years agoAdd support for writing blocks to the loader's disk cache.
John Baldwin [Tue, 11 Dec 2001 00:10:00 +0000 (00:10 +0000)]
Add support for writing blocks to the loader's disk cache.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoAdd support for writing to BIOS disks.
John Baldwin [Tue, 11 Dec 2001 00:08:10 +0000 (00:08 +0000)]
Add support for writing to BIOS disks.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoWe support writing to at least one filesystem now.
John Baldwin [Tue, 11 Dec 2001 00:04:28 +0000 (00:04 +0000)]
We support writing to at least one filesystem now.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoAdd support for overwriting the existing contents of a file to the UFS
John Baldwin [Tue, 11 Dec 2001 00:03:10 +0000 (00:03 +0000)]
Add support for overwriting the existing contents of a file to the UFS
driver in libstand.  This specifically does not expand or truncate files
since the filesystem may be dirty or inconsistent.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoFix the mouse question again to only run the mouse menu if a user doesn't
John Baldwin [Mon, 10 Dec 2001 22:12:23 +0000 (22:12 +0000)]
Fix the mouse question again to only run the mouse menu if a user doesn't
have a USB mouse.  Here's the deal on how this works:  USB mouse have
moused run for them automatically by usbd so we don't need to setup moused
for them.  We do need to setup moused for other mice though, so if the
user has a USB mouse, we don't need to do anything.  Hence the wording
"Do you have a non-USB mouse installed?" for the question.  The question
can be reworded as "Do you have a PS/2 or Serial mouse installed?" instead
if that is preferred.

22 years agoReorder WARNS line for style.
Mike Heffner [Mon, 10 Dec 2001 21:13:36 +0000 (21:13 +0000)]
Reorder WARNS line for style.

Pointed out by: bde

22 years agoStyle improvements recommended by Bruce as a follow up to some
David Malone [Mon, 10 Dec 2001 21:13:08 +0000 (21:13 +0000)]
Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.

22 years agoMissed an assignment of arg6 in previous commit.
David E. O'Brien [Mon, 10 Dec 2001 20:58:39 +0000 (20:58 +0000)]
Missed an assignment of arg6 in previous commit.

22 years agoRecognize numeric digits inside $id$ tags, eg: $XFree86$
Peter Wemm [Mon, 10 Dec 2001 20:44:31 +0000 (20:44 +0000)]
Recognize numeric digits inside $id$ tags, eg: $XFree86$

PR: 30666
Submitted by: Tony Finch <dot@dotat.at>

22 years agoGet rid of irritating (bogus) message:
Guido van Rooij [Mon, 10 Dec 2001 20:27:18 +0000 (20:27 +0000)]
Get rid of irritating (bogus) message:
pcm0: ac97 codec failed to reset extended mode (0, got 80)
This was due to not masking off the correct extended function bits
in the read value from the extended status reg.

MFC after: 2 days

22 years agoAdjust for the addition of CTR6.
David E. O'Brien [Mon, 10 Dec 2001 20:18:17 +0000 (20:18 +0000)]
Adjust for the addition of CTR6.

22 years agoComplete the CTR6 addition (and TR6 and ITR6...)
David E. O'Brien [Mon, 10 Dec 2001 20:09:49 +0000 (20:09 +0000)]
Complete the CTR6 addition (and TR6 and ITR6...)