32360 Commits

Author SHA1 Message Date
jkh
afb7d7e829 All these have to include stdio.h now. 1998-10-09 00:39:09 +00:00
msmith
d8d7e646f4 Kernel environment access, preloaded module lookup. 1998-10-09 00:31:29 +00:00
msmith
0d4797aebc Initialise kernel environment and module metadata pointers. 1998-10-09 00:31:06 +00:00
msmith
6f4943246a New files for kernel environment and module metadata interfaces. 1998-10-09 00:30:50 +00:00
jdp
2846983609 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
1f21e28dc6 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
ababcfc884 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
28dc6bbbea 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
acfb98ece6 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
0a6f31055f 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
e3725de368 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
0754b967d8 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
414562d64d 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
8aeb1f4ecc 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
f20c820e31 Discard previous commit. 1998-10-08 17:20:58 +00:00
kato
57d35933f2 Oops, discard my previous commits becase sumitted code is for RELENG_2_2. 1998-10-08 17:16:41 +00:00
kato
7dc0c1a3d6 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
b1846b499f 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
4d4145bdee 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
29d7df02f8 BIOS ROM base address is 0xe8000 on PC-98. 1998-10-08 16:15:22 +00:00
wpaul
d0066a99a0 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
e52e6a8d2c Sync with sys/i386/conf/GENERIC revision up to 1.123. 1998-10-08 12:10:07 +00:00
kato
a36bbf007a Sync with sys/i386/i386/userconfig.c revision 1.111. 1998-10-08 12:09:38 +00:00
jkh
98468fe965 Finally settle on a name for the mfsroot image. 1998-10-08 10:18:55 +00:00
jkh
d3aa2cefad Only install boot blocks if !MFSKERN. Too big otherwise! 1998-10-08 10:02:28 +00:00
obrien
59bd962db0 Quiet many compiler warnings. 1998-10-08 09:56:10 +00:00
jkh
f79045f756 Add boot bits to boot floppy. 1998-10-08 09:53:32 +00:00
jkh
b49acf3cc7 Make both types of boot targets. 1998-10-08 09:40:17 +00:00
jkh
09b12ea3fa Final cleanup pass over boot floppy changes. 1998-10-08 09:06:16 +00:00
phk
f4a8651b6a 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
0b05f0265c Remove a gratuitous copy. 1998-10-08 07:12:37 +00:00
jkh
7f5d64043f Add some rudimentary documentation for my new functions. 1998-10-08 06:53:32 +00:00
sos
8b065be54c Remove debug output on disk change. 1998-10-08 06:41:44 +00:00
markm
b1bb470bf1 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
68c2a3a49f 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
jkh
9d3a21e27c Correct a build error that got past my build test somehow. 1998-10-08 01:56:49 +00:00
alex
06ba723cf3 Check the timeval passed to BIOCSRTIMEOUT with itimerfix. Use tvtohz()
to convert the timeval into a tick count.

Suggested by:	bde
Reviewed by:	bde

Handle hz > 1000 in BIOCGRTIMEOUT.

Pointed out by:	bde
Reviewed by:	bde
Obtained from:	OpenBSD
1998-10-08 00:32:08 +00:00
jkh
0fe4e68af4 Unreverse a conditional and gzip the mfs image by default. 1998-10-07 22:58:22 +00:00
jkh
111cf5cb67 Support 3 floppy images as standard now: boot kernel, mfs image and
kernel+mfs image.
1998-10-07 22:54:04 +00:00
jkh
234905fb04 Fix typo. 1998-10-07 22:36:48 +00:00
jkh
e1107384d7 Fix typos. 1998-10-07 22:15:24 +00:00
jkh
b2d47df89c Add MFSKERN flag to enable the combining of kernel and MFS fs.
At some point, it will always be off from the user's POV and used
only internally to build (optionall) both mfskern floppies and
ones where mfs root and kernel go in separate places.
1998-10-07 21:53:14 +00:00
des
a776f469d1 By popular request, mention that mailq responds to the same options as
sendmail(8).

PR:		i386/8149
1998-10-07 19:45:36 +00:00
jkh
726f317a72 Read in all the nlist entries properly. 1998-10-07 19:42:46 +00:00
jkh
bc5c2d94f2 Add isa_devtab_cam 1998-10-07 19:40:51 +00:00
jkh
9734dc69e1 Add a simple mechanism for reading property lists from files (which
I'll convert sysinstall to use shortly) and a simple call which uses
this mechanism to implement an /etc/auth.conf file.  I'll let Mark Murray
handle the format and checkin of the sample auth.conf file.
Reviewed by:	markm
1998-10-07 17:32:49 +00:00
des
8f4fb55b82 Add missing newline in probe message.
PR:		kern/8168
Submitted by:	Stefan Eggers <seggers@semyam.dinoco.de>
1998-10-07 14:42:24 +00:00
luoqi
b09f25123d Use vm_page_xxx() inline functions to manipulate vm_page::flags, vm_page::busy.
As a side effect, a few wakeup() calls are added, which might fix some of the
missing vm_page wakeups people have been seeing.

Reviewed by:	Doug Rabson	<dfr@nlsystems.com>
1998-10-07 13:59:26 +00:00
obrien
0d6146b8ef Fix syntax errors I introduced. 1998-10-07 13:51:46 +00:00
msmith
56cd124a88 Add strcasecmp source file required for dosfs operation. 1998-10-07 13:50:17 +00:00