Commit Graph

32375 Commits

Author SHA1 Message Date
jkh
6f4401a7cb Take the path spec back out. 1998-10-09 07:28:14 +00:00
msmith
497ddbea86 Remove some debugging code.
Do a much better job of DWIM with partial device specifications.
Fix the module metadata build process, which was completely broken.
Use a larger read buffer when copying large objects in; this
improves performance marginally and will avoid flushning any small caches
we might choose to implement.
1998-10-09 07:11:19 +00:00
msmith
1bd69fe4a0 Sync the MODINFO constants with <sys/linker.h>
Remove debugging in command_read().
Correctly strip leading controls on script commands.
Make 'ls' more DWIM in regard to pathnames.  We can still do better.
1998-10-09 07:09:22 +00:00
jkh
c95f48f868 Small refinements to boot script. 1998-10-09 07:07:55 +00:00
msmith
95f6472e06 MODINFO_NAME can't be 0, that's the end of the metadata area. 1998-10-09 07:06:43 +00:00
markm
eae906720c Use KJH's auth.conf parser to turn on/off Kerberos in userland. 1998-10-09 06:47:57 +00:00
markm
b14a67847b Use KJH's auth.conf parser to turn on/off Kerberos in userland. 1998-10-09 06:38:33 +00:00
markm
f7173f04af Add JKH's auth.conf-file parser to turn Kerberos on/off in userland. 1998-10-09 06:31:45 +00:00
jkh
0082fed2a4 Initialize boot configuration files on floppy correctly. We now
support 3 kinds of floppies:  boot+mfs (standard), boot, mfs.
1998-10-09 06:28:28 +00:00
jkh
9e98ac00ed Add some evil temporary phys-to-kern translation for mfs. 1998-10-09 06:21:12 +00:00
wpaul
23b982fd26 Add support for yet another "cyclone" board, with PCI device id 0x905A.
This is a 100BaseFX board with SC fiber media connectors. I don't actually
have one of these but I've been told it works with the xl driver.

Submitted by: Jason Wright from the openbsd group
1998-10-09 03:59:24 +00:00
msmith
b6ac012791 Missing defines for the kernel environment and module metadata lookup
functions
1998-10-09 01:44:09 +00:00
jdp
0aac1abf71 Don't try to print out the signal number that caused core to be
dumped.  It is not in a fixed location in the file, so at best,
garbage comes out.  I don't think this code was ever valid.
1998-10-09 01:43:08 +00:00
jkh
ef1186ed1b include proper header for Mike's new stuff. 1998-10-09 01:40:56 +00:00
asami
902fe9bd4f Add new variable NO_FILTER_SHLIBS -- it will disable ELF <-> a.out shlib
name conversion.  Use it for binary ports that come with its own private
shlib dirs, ports that install linux compatibility libraries (thus following
their naming conventions and not ours), etc.

Reviewed by:	Martin Cracauer <cracauer@FreeBSD.ORG>
1998-10-09 01:27:21 +00:00
jkh
f0d295b433 All these have to include stdio.h now. 1998-10-09 00:39:09 +00:00
msmith
0a47e99f0d Kernel environment access, preloaded module lookup. 1998-10-09 00:31:29 +00:00
msmith
c672bdd3a8 Initialise kernel environment and module metadata pointers. 1998-10-09 00:31:06 +00:00
msmith
37ddd256bf New files for kernel environment and module metadata interfaces. 1998-10-09 00:30:50 +00:00
jdp
58c31ac506 Fix a panic on SMP systems, caused by sleeping while holding a
simple-lock.

The reviewer raises the following caveat: "I believe these changes
open a non-critical race condition when adding memory to the pool
for the zone. I think what will happen is that you could have two
threads that are simultaneously adding additional memory when the
pool runs out. This appears to not be a problem, however, since
the re-aquisition of the lock will protect the list pointers."
The submitter agrees that the race is non-critical, and points out
that it already existed for the non-SMP case.  He suggests that
perhaps a sleep lock (using the lock manager) should be used to
close that race.  This might be worth revisiting after 3.0 is
released.

Reviewed by:	dg (David Greenman)
Submitted by:	tegge (Tor Egge)
1998-10-09 00:24:49 +00:00
jkh
1fb230d42c Use lstat() rather than stat in determining whether a file exists,
otherwise we'll miss the "symlink exists but points nowhere" case.
Submitted by:	asami and/or possibly <ru@ucb.crimea.ua>
1998-10-09 00:01:16 +00:00
jkh
dc16edc804 Allow the module area to be used in order to find the MFS image
(in addition to allowing it to be compiled in) and stop overloading
the MFS_ROOT variable to store size information.
1998-10-08 23:34:44 +00:00
jkh
639b1d931e This thing has its own puts function, so use it.
Submitted by:	Matthew Jacob <mjacob@nas.nasa.gov>
1998-10-08 23:14:02 +00:00
jkh
6400200a8d remove stdio.h include; I forgot Bruce's cardinal rule that header files
shouldn't include other ones (which, unfortunately, is also a hellish
rule since he broke interfaces like sysctl this way by requiring undocumented
header files to be included just in order to be able to use them now - SIGH!).
1998-10-08 23:10:41 +00:00
msmith
4e5436d980 Fix up the kernel environment and module data pointers in the bootinfo if
they are present.
If we are told where the end of the loaded kernel image is, believe it.
1998-10-08 21:03:41 +00:00
des
439bbf0b58 Make that annoying "device busy" message dependent on DEBUG (using the
DEB macro). There are probably quite a few other messages that warrant
a similar treatment, and many more that should be converted to plain
log messages (e.g. "WARNING: wrintr but write DMA inactive!"). Now
that I think of it, same goes for the CAM code (e.g. the famed "tagged
openings" message)
1998-10-08 20:55:54 +00:00
ken
614c235f78 Fix a memory leak in rpc.rstatd that shows up when it's run in standalone
mode.  (i.e., not from inetd)

PR:		bin/8212
1998-10-08 19:59:40 +00:00
des
417114e05d While I'm at it, remove the tickadj manpage from src/share/man0/man8,
though I'm afraid there's a lot more that needs fixing in this file,
judging by 'find /usr/src -name "*.8" -print'.

Spotted-by:	glimpse -H /usr/src tickadj
1998-10-08 18:52:17 +00:00
des
6f3812878d Remove all references to tickadj(8) from rc, rc.conf and rc.conf.5.
Disable building tickadj(8) by removing util from SUBDIR in the xntpd
Makefile. Note that the sources are still there and tickadj can still
be built and installed by doing:

# cd /usr/src/usr.sbin/xntpd/util
# make all install

There are enough references to tickadj in e.g. the xntpd documentation
(not to mention the sysctl variables it uses etc.) that I don't feel
up to implementing the final solution right now.

Kinda-approved-by:	phk
1998-10-08 18:47:30 +00:00
kato
83bbd6132e Discard previous commit. 1998-10-08 17:20:58 +00:00
kato
f1b1187499 Oops, discard my previous commits becase sumitted code is for RELENG_2_2. 1998-10-08 17:16:41 +00:00
kato
2af0b60555 Add entry for EtherEZ98 and Access/PC N98C+ cards.
Reviewed by:	kato
Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
1998-10-08 17:07:44 +00:00
kato
4cfae4572e Add ungermann-Bass Access/PC N98C+ support to fe driver (PC-98).
Reviewed by:	kato
Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
1998-10-08 17:06:32 +00:00
kato
40301fb519 Add SMC EtherEZ98 support to ed driver (PC-98).
Reviewed by:	kato
Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
1998-10-08 17:04:59 +00:00
kato
4f12b7e8c8 BIOS ROM base address is 0xe8000 on PC-98. 1998-10-08 16:15:22 +00:00
wpaul
3ced6e17aa Correctly update the tail pointer of the transmit queue in tl_start()
(one-liner). I have yet to actually encounter any problems due to this
bug, but why take chances.
1998-10-08 15:45:36 +00:00
kato
30b795844c Sync with sys/i386/conf/GENERIC revision up to 1.123. 1998-10-08 12:10:07 +00:00
kato
0f012db72f Sync with sys/i386/i386/userconfig.c revision 1.111. 1998-10-08 12:09:38 +00:00
jkh
991dffc1f2 Finally settle on a name for the mfsroot image. 1998-10-08 10:18:55 +00:00
jkh
ea8a889233 Only install boot blocks if !MFSKERN. Too big otherwise! 1998-10-08 10:02:28 +00:00
obrien
bbda8835a6 Quiet many compiler warnings. 1998-10-08 09:56:10 +00:00
jkh
061faf3d4c Add boot bits to boot floppy. 1998-10-08 09:53:32 +00:00
jkh
e28c3668b2 Make both types of boot targets. 1998-10-08 09:40:17 +00:00
jkh
de0b76cb18 Final cleanup pass over boot floppy changes. 1998-10-08 09:06:16 +00:00
phk
daafcaf9d2 Avoid using dmesg to find devices, the buffer may not be big enough.
Reviewed by:	phk
Submitted by:	Mike Spengler <mks@networkcs.com>
1998-10-08 08:56:01 +00:00
jkh
7e9c3ac7f6 Remove a gratuitous copy. 1998-10-08 07:12:37 +00:00
jkh
2a6fa6f4e3 Add some rudimentary documentation for my new functions. 1998-10-08 06:53:32 +00:00
sos
44aa4f907c Remove debug output on disk change. 1998-10-08 06:41:44 +00:00
markm
ed2ba8fa88 Add auth.conf. JKH Added the code to understand this to libutil, and
I will be following up with commits to use it in KerberosIV userland.
1998-10-08 06:12:04 +00:00
ken
0d2166d239 Add the quirk entry framework to handle disabling the synchronize cache
command on drives that don't like it.  Right now, there's just a bogus
quirk entry in the table that doesn't do anything, but that should be
changed once we get actual inquiry data for drives that don't like the
synchronize cache command.

Also, add a shutdown hook that runs through all direct access peripherals
and runs a synchronize cache on them if they're still open, and if
synchronize cache isn't disabled via a quirk entry.

Add a synchronize cache call at the end of dadump() (again, conditionalized
on the quirk entry), so we can insure that the disk cache contents get
flushed to physical media after a dump.

Check the new quirk entry in daclose() to decide whether or not to
synchronize the cache for a disk at final close.

Reviewed by:	gibbs
1998-10-08 05:46:38 +00:00