Thomas Moestl [Sat, 9 Mar 2002 21:52:31 +0000 (21:52 +0000)]
Set the busmaster enable bit in the PCI command register, as the firmware
of sparc64 machines will not do this for us if the interface is not used
for booting over the network.
Mike Barcroft [Sat, 9 Mar 2002 21:02:16 +0000 (21:02 +0000)]
o Don't require long long support in bswap64() functions.
o In i386's <machine/endian.h>, macros have some advantages over
inlines, so change some inlines to macros.
o In i386's <machine/endian.h>, ungarbage collect word_swap_int()
(previously __uint16_swap_uint32), it has some uses on i386's with
PDP endianness.
Submitted by: bde
o Move a comment up in <machine/endian.h> that was accidentially moved
down a few revisions ago.
o Reenable userland's use of optimized inline-asm versions of
byteorder(3) functions.
o Fix ordering of prototypes vs. redefinition of byteorder(3)
functions, so that the non-GCC (libc asm) case has proper
prototypes.
o Add proper prototypes for byteorder(3) functions in <sys/param.h>.
o Prevent redundant duplicate prototypes by making use of the
_BYTEORDER_PROTOTYPED define.
o Move the bswap16(), bswap32(), bswap64() C functions into MD space
for platforms in which asm versions don't exist. This significantly
reduces the complexity of some things at the cost of duplicate code.
Luigi Rizzo [Sat, 9 Mar 2002 20:16:06 +0000 (20:16 +0000)]
Lots of updates on the install process, detailing how to
install PicoBSD on hard disks and CDROM images, and on the
bootstrap sequence and the places where you can customise
a PicoBSD image.
Now if some of the -doc guys want to put this stuff in a nice
handbook page, that would be extremely useful!
Luigi Rizzo [Sat, 9 Mar 2002 18:27:02 +0000 (18:27 +0000)]
Remove host.conf, and introduce a way to override the content
of selected files (at the moment /etc/host.conf and /etc/resolv.conf)
from /etc/rc.conf , so the number of places to customize is
reduced.
Tor Egge [Sat, 9 Mar 2002 16:24:27 +0000 (16:24 +0000)]
Revert change in revision 1.53 and add a small comment to protect
the revived code.
vm pages newly allocated are marked busy (PG_BUSY), thus calling
vm_page_delete before the pages has been freed or unbusied will
cause a deadlock since vm_page_object_page_remove will wait for the
busy flag to be cleared. This can be triggered by calling malloc
with size > PAGE_SIZE and the M_NOWAIT flag on systems low on
physical free memory.
A kernel module that reproduces the problem, written by Logan Gabriel
<logan@mail.2cactus.com>, can be found in the freebsd-hackers mail
archive (12 Apr 2001). The problem was recently noticed again by
Archie Cobbs <archie@dellroad.org>.
David Malone [Sat, 9 Mar 2002 11:38:01 +0000 (11:38 +0000)]
If syslog fails to talk to syslogd, then it tries to write a message
to the console in a final attempt to log something. Make this final
attempt non-blocking so that a blocking console doesn't end up
blocking process which attempt to syslog something.
In particular, this means you should be able to su and fix the
problem if the console becomes blocking.
Dima Dorfman [Sat, 9 Mar 2002 04:55:35 +0000 (04:55 +0000)]
In the words of the submitter:
Kerberized CVS (kserver) listens on the same port as normal CVS
(pserver). In /etc/inetd.conf cvs kserver is disabled by default,
but set to listen to the service port 'cvs' which doesn't exist. It
should listen to 'cvspserver'.
PR: 34317
Submitted by: Sean Chittenden <sean@chittenden.org>
Dima Dorfman [Sat, 9 Mar 2002 03:52:14 +0000 (03:52 +0000)]
When reporting that a line is too long, include the line number in the
error message. While I'm here, add a note that the "line too long"
message isn't always accurate.
Brian Feldman [Sat, 9 Mar 2002 03:16:41 +0000 (03:16 +0000)]
Fix build. I commented out getpass() in readpassphrase.c because the
implementation did not match our manpage description (i.e., it could
return NULL). I mistakenly thought we were still using getpass.c
because, for some reason, CVS never removed it from the tree.
Pointy hat received from: alfred
Kick in the groin to: CVS
Bruce A. Mah [Sat, 9 Mar 2002 00:03:44 +0000 (00:03 +0000)]
New/changed release notes: OpenPAM has replaced Linux-PAM.
We used to have a note about new PAM modules; I moved it from the
contrib section back to the generic userland area. The list of new
modules was incomplete, so I've punted on trying to list them all
for now.
Brian Feldman [Fri, 8 Mar 2002 21:14:00 +0000 (21:14 +0000)]
Update readpassphrase(3)to the latest revisions. Changes are mainly due
to return value constraints now changing as well as more intelligent
handling of signals.
John Baldwin [Fri, 8 Mar 2002 18:57:57 +0000 (18:57 +0000)]
- Use a MI critical section in witness_sleep() and witness_list() as they
simply need to prevent switching from another CPU and do not need
interrupts disabled.
- Add a comment to witness_list() about why displaying spin locks for
threads on other CPU's really is just a bad idea and probably shouldn't
be done.
John Baldwin [Fri, 8 Mar 2002 18:55:59 +0000 (18:55 +0000)]
Read KTR_CPU into a temporary variable so that we use a consistent value
for both the cpumask check and the cpu entry field w/o needing to use
a critical section.
Robert Watson [Fri, 8 Mar 2002 15:34:23 +0000 (15:34 +0000)]
Synchronize NOTES with -STABLE LINT with respects to the placement
and commenting of NETSMB, NETWMBCRYPTO, and SMBFS. In NOTES, they
had all floated to the bottom of the file with the list of seemingly
random and unclassified kernel options. This change moves them back
up to the network protocol and file system areas, and also documents
the dependencies.
This is belived to be the only place where a soft reference to a vnode
is held with no sort of hard reference, consequently this change should
allow us to free(9) vnodes from the freelist after properly cleaning
them up.
Luigi Rizzo [Fri, 8 Mar 2002 12:43:57 +0000 (12:43 +0000)]
Further cleanup: remove useless entries from PATH, and be prepared
to use kern.bootdevname (if available) to identify the boot device
for updating the configuration. Fallback to /dev/fd0 as before.
Luigi Rizzo [Fri, 8 Mar 2002 12:14:46 +0000 (12:14 +0000)]
Unbreak "update" script, by doing a mkdir -p of the relevant
directories when writing to disk.
Use the (yet to be committed) sysctl variable kern.bootdevname
to derive the device name, fallback to /dev/fd0 if kern.bootdevname
is unset or not available.
- The pc98_ttspeedtab() function returns an error status instead of a divisor,
and sets a divisor to the third argument.
- The second argument of the pc98_set_baud_rate() function is changed from int
to u_int.
Luigi Rizzo [Fri, 8 Mar 2002 12:10:13 +0000 (12:10 +0000)]
Use a default of 25 lines for xterm. This only affects the behaviour
over a serial line, because the terminal negotiations using ssh/telnet
does the right thing anyways.
Luigi Rizzo [Fri, 8 Mar 2002 05:15:08 +0000 (05:15 +0000)]
Major cleanup of PicoBSD startup scripts, which now should be
closer to doing "the right thing".
The structure is now the following:
* /etc/rc (from MFS) loads the rest of /etc and /root from
/fd and then from floppy (if present), then transfers control
to /etc/rc1
* /etc/rc1 loads defaults from /etc/rc.conf.defaults, tries to
set the hostname basing on the MAC address of the first ethernet
interface, and then sources /etc/rc.conf and /etc/rc.conf.local
for local configurations
* The rest of the startup process is then performed (rc.network and so on).
Everything except the initial /etc/rc (from MFS) can be overridden with
a local version loaded from floppy. But in most cases, you should only need
to customize the following files in /etc:
rc.conf rc.firewall hosts
Previously there were a number of inconsistencies in the calling
between files, and also a lot of clutter in rc.conf and rc.firewall.
Also, "rc1" was called "rc" and would overwrite the initial /etc/rc
from MFS, making it really hard to figure out what was going on in
case of bugs.
Mike Barcroft [Fri, 8 Mar 2002 03:09:46 +0000 (03:09 +0000)]
Use a integral type that doesn't require <sys/types.h>. This
accomplishes the goal of actually making <grp.h> independent of other
headers for the definition of its types.
Matt Jacob [Thu, 7 Mar 2002 17:32:45 +0000 (17:32 +0000)]
Disable RIO (reduced interrupt operation) for 2200 boards- it seemed like
it worked- but I ran into a case with a 2204 where commands were being lost
right and left. Best be safe.
For target mode, or things called if we call isp_handle_other response- note
that we might have dropped locks by changing the output pointer so we bail
from the loop. It's the responsibility of the entity dropping the lock to
make sure that we let the f/w know we've read thus far into the response
queue (else we begin processing the same entries again- blech!).