Peter Wemm
20f02ef5e9
Remove the V_SAVEMETA flag, nothing uses it any more now that msdosfs and
...
ext2fs call vtruncbuf() directly. This simplifies and cleans up
vinvalbuf() a little.
1998-10-29 09:51:28 +00:00
Peter Wemm
91ecc00e71
error return assignment was less than ideal. Fix the part that caused
...
warnings to be the same as the ffs code. Previously, any error from
the UFS_UPDATE() call was lost (I think).
1998-10-29 09:44:12 +00:00
Peter Wemm
f6020599aa
Use vtruncbuf() to clean out cached blocks on a file shorten rather than
...
the more expensive vinvalbuf(), based on the FFS version of the same
routine. I don't have any ext2fs filesystems to test this on.
1998-10-29 09:30:52 +00:00
Peter Wemm
44fdad9976
Use vtruncbuf() rather than vinvalbuf() when shortening files.
1998-10-29 09:29:17 +00:00
John Polstra
d0a7acafba
Make the definition of __printf0like() vary according to the value
...
of __FreeBSD_cc_version, so that its use is safe with older compilers
and with non-FreeBSD compilers.
1998-10-29 04:41:24 +00:00
Garrett Wollman
46365a874a
A small fragment of new ISA framework: manifest constants for the resources
...
implemented by the i386 root nexus.
1998-10-29 01:56:23 +00:00
Garrett Wollman
a64d49d14f
A Perl5 version of makedevops.sh. Fixes a bug in the sh/awk version
...
which really annoyed me at the time but I don't think bites me any
more.
1998-10-29 01:52:59 +00:00
Garrett Wollman
af2a5c769a
The new resource manager, hopefully in a reasonably stable form.
1998-10-29 01:48:36 +00:00
Robert V. Baron
6f72efa21b
Change the way unmounting happens to guarantee that the
...
client programs are allowed to finish up (coda_call is
forced to complete) and release their locks. Thus there
is a reasonable chance that the vflush implicit in the
unmount will not get hung on held locks.
1998-10-28 20:31:13 +00:00
Robert V. Baron
d2a0549842
Update
1998-10-28 19:39:12 +00:00
Robert V. Baron
e8e04c2b37
Venus must be passed O_CREAT flag on VOP_OPEN iff this is
...
a creat so that we can will allow a mode 444 file to be
written into. Sync with the latest coda.h and deal with
collateral damage.
1998-10-28 19:33:50 +00:00
Mike Smith
8879e57b3e
Simplify the "is a character ready" test, so that we don't return a false
...
negative for keypresses with zero ascii values. This is in line with the
comconsole test, rather than being more ambitious.
Submitted by: rnordier
1998-10-28 19:24:15 +00:00
David Greenman
c8d14c765f
Fixed wrong comments in and about vm_page_deactivate().
1998-10-28 13:41:43 +00:00
David Greenman
730075613a
Added a second argument, "activate" to the vm_page_unwire() call so that
...
the caller can select either inactive or active queue to put the page on.
1998-10-28 13:37:02 +00:00
KATO Takenori
5ff07d2ee7
Sync with sys/i386/conf/Makefile.i386 revision 1.127.
1998-10-28 10:48:37 +00:00
Jordan K. Hubbard
2dcc2f0693
Clarify a rather ambiguous debugging message.
1998-10-28 10:37:54 +00:00
Doug Rabson
709f2df6c3
Add BUS_DEBUG option in opt_bus.h
1998-10-28 08:37:10 +00:00
Robert Nordier
9244e1a412
Avoid interruptions while talking to keyboard controller.
1998-10-27 20:19:24 +00:00
Robert Nordier
c589107988
biosboot compatibility fix: change behavior of backspace in getstr().
...
Noticed by: abial
Optimize away a few bytes to make space for the above.
1998-10-27 20:16:36 +00:00
David Greenman
e4b7635de2
Added needed splvm() protection around object page traversal in
...
vm_object_terminate().
1998-10-27 13:22:51 +00:00
Bruce Evans
b5ee16407f
Oops, the redundant tests for major numbers weren't redundant here.
...
They checked for the magic major number for the "device" behind mfs
mount points. Use a more obvious check for this device.
Debugged by: Andrew Gallatin <gallatin@cs.duke.edu>
1998-10-27 11:47:08 +00:00
Doug Rabson
45a576b57a
Lots of debugging code and some bugfixes.
...
Submitted by: Nick Hibma <nick.hibma@jrc.it>
1998-10-27 09:21:43 +00:00
Doug Rabson
e3f0338ead
Some optimisations to the fragment reassembly code.
...
Submitted by: Don Lewis <Don.Lewis@tsc.tdk.com>
1998-10-27 09:19:03 +00:00
Doug Rabson
afb3fdba7c
Fix a bug in the new fragment reassembly code which was tickled by recieving
...
a fragment which wholly overlapped one or more existing fragments.
Submitted by: Don Lewis <Don.Lewis@tsc.tdk.com>
1998-10-27 09:11:41 +00:00
Bruce Evans
569555b969
Removed redundant bitrotted checks for major numbers instead of updating
...
them.
1998-10-26 08:53:13 +00:00
Bruce Evans
885bf0b57a
Updated the major number check in vfs_object_create(). It's not
...
clear if the check is necessary, but vfs_object_create() is called
for all vnodes and it was silly to create objects for VBLK vnodes
that don't even have a driver.
1998-10-26 08:07:00 +00:00
Bruce Evans
83d5d944d0
Check the major number of the boot device more carefully. There was only
...
a problem if the boot blocks passed bad data.
Check the major number of the dump device consistently.
1998-10-26 07:05:34 +00:00
Bruce Evans
fffd686a31
Fixed breakage of the GPROF case of statclock() in the previous commit.
1998-10-26 06:13:18 +00:00
Bruce Evans
b64f28be2d
Oops, back out some local changes that shouldn't have been in the
...
previous commit.
1998-10-25 20:11:36 +00:00
Bruce Evans
c8a1bed2ab
Fixed breakage of the !SMP case of roundrobin() in the previous commit.
1998-10-25 19:57:23 +00:00
Bruce Evans
65baf8f06b
Don't follow null bdevsw pointers. The `major(dev) < nblkdev' test rotted
...
when bdevsw[] became sparse. We still depend on magic to avoid having to
check that (v_rdev) device numbers in vnodes are not NODEV.
1998-10-25 19:26:18 +00:00
Bruce Evans
9cd93b3aec
Don't follow null bdevsw pointers. The `major(dev) < nblkdev' test rotted
...
when bdevsw[] became sparse. We still depend on magic to avoid having to
check that (v_rdev) device numbers in vnodes are not NODEV.
Removed a redundant `major(dev) < nblkdev' test instead of updating it.
Don't follow a garbage bdevsw pointer for attempts to swap on empty
regular files. This case currently can't happen. Swapping on regular
files is ifdefed out in swapon() and isn't attempted for empty files
in nfs_mountroot().
1998-10-25 19:24:04 +00:00
Bruce Evans
9c0619dace
Don't follow null bdevsw pointers. The `major(dev) < nblkdev' test rotted
...
when bdevsw[] became sparse. We still depend on magic to avoid having to
check that (v_rdev) device numbers in vnodes are not NODEV.
Removed redundant `major(dev) < nblkdev' tests instead of updating them.
1998-10-25 19:02:48 +00:00
Poul-Henning Kamp
f5ef029e92
Nitpicking and dusting performed on a train. Removes trivial warnings
...
about unused variables, labels and other lint.
1998-10-25 17:44:59 +00:00
Bruce Evans
37906c686d
Fixed device number checking in bdevvp():
...
- dev != NODEV was checked for, but 0 was returned on failure. This was
fixed in Lite2 (except the return code was still slightly wrong (ENODEV
instead of ENXIO)) but the changes were not merged. This case probably
doesn't actually occur under FreeBSD.
- major(dev) was not checked to have a valid non-NULL bdevsw entry. This
caused panics when the driver for the root device didn't exist.
Fixed minor misformattings in bdevvp(). Rev.1.14 consisted mainly of
gratuitous reformattings that seem to have caused many Lite2 merge
errors.
PR: 8417
1998-10-25 16:11:49 +00:00
Bruce Evans
a6cda5b68f
Fixed sysctl attachment for statically configured vfs's.
...
Broken in: previous commit
1998-10-25 10:52:34 +00:00
Poul-Henning Kamp
858bb1f5b5
Add some missing dependencies.
...
Grumbled about in principle: bde
1998-10-25 07:23:32 +00:00
Paul Richards
a57faa7b13
Fix the interrupt mask generated for enabling/disabling interrupts 8 to 15.
1998-10-25 01:30:16 +00:00
Poul-Henning Kamp
00fb0e87c7
Update to current reality. We can now track several LORSTA on separate
...
minor devices.
Improve PLL/OCXO DAC dithering.
General remodeling.
Performance is now 2.5e-11 in frequency and +/- 100 nsec in time, both
of which are actually the limits of the transmitted signal.
1998-10-24 19:55:09 +00:00
Poul-Henning Kamp
842426555a
Update and add timekeeping code.
1998-10-24 19:47:42 +00:00
Poul-Henning Kamp
bd66abc2e6
Header file for XRPU devices.
1998-10-24 19:47:29 +00:00
Mike Smith
80015f135f
Don't complain about SIOCGIFMEDIA; it's harmless and not something
...
useful here yet.
Submitted by: markm and others
1998-10-24 18:55:53 +00:00
Mike Smith
6fe8861e01
Don't put 0x in front of %p, it does it already.
...
Submitted by: Brian Feldman <green@janus.syracuse.net>
1998-10-24 18:35:09 +00:00
Mike Smith
b6542d2e4f
Reserve some space for the stack in the region we recover from the initial
...
bootloader.
Submitted by: dfr
1998-10-24 00:31:21 +00:00
Mike Smith
0cae710c49
Clean the ${BASE}.sym file as well.
1998-10-23 22:32:27 +00:00
Mike Smith
4558ccdf6f
Remove a debugging copy of offsetof() that snuck in.
1998-10-23 22:30:52 +00:00
Mike Smith
c93cd32637
Enable the PCI BIOS PnP enumerator.
1998-10-23 22:29:19 +00:00
Mike Smith
a1c0b1c5c5
PnP enumerator using the PCI BIOS. This is needlessly complex due to the
...
lack of a simple "enumerate all PCI devices" function.
1998-10-23 22:29:08 +00:00
Bruce Evans
4af4007dbb
Ignore `vector xxxintr' specifications except for checking their syntax.
...
Interrupt handlers are now configured in drivers.
Didn't update config/SMM.doc. It doesn't have any i386 examples (not
even `isa').
Bumped CONFIGVERS. This is not necessary for -current yet, but using
the new config with old system sources gives null pointers for all
vectors.
1998-10-23 17:05:06 +00:00
KATO Takenori
7f9848cd68
Sync with sys/i386/isa/clock.c revision 1.128.
1998-10-23 13:13:43 +00:00