Commit Graph

10632 Commits

Author SHA1 Message Date
Tor Egge 6680ea138a Be more restrictive about when to disregard MP config table values
(previous commit broke support for Dec Personal Workstation).
1998-05-17 17:32:10 +00:00
Poul-Henning Kamp c21410e119 s/nanoruntime/nanouptime/g
s/microruntime/microuptime/g

Reviewed by:	bde
1998-05-17 11:53:46 +00:00
Søren Schmidt 0e1e9fdca6 Cleanup after Garret, include unpch.h to get at various macros.. 1998-05-17 09:37:39 +00:00
John Dyson bd6be9150d An important fix for proper inheritance of backing objects for
object splits.  Another excellent detective job by Tor.
Submitted by:	Tor Egge <Tor.Egge@idi.ntnu.no>
1998-05-16 23:03:20 +00:00
Bruce Evans dae50f6c50 Don't use "ffs" in an ext2fs sleep message string.
Don't forget to clear the inode hash lock before returning from ext2_vget()
after getnewvnode() fails.  Obtained from: rev.1.24 of ffs_vfsops.c (the
original patch for the getnewvnode() race).  Forgotten in: rev.1.4 here.

Removed a duplicate comment.  Duplicated in: rev.1.4 here.

Fixed the MALLOC() vs getnewvnode() race in ext2_vget().  Obtained from:
rev.1.39 of ffs_vfsops.c.
1998-05-16 17:47:44 +00:00
Bruce Evans 2c8838fec4 Abbreviate "ext2fs_fsync" as "e2fsyn" instead of as "extfsn" in a sleep
message string.
1998-05-16 16:52:20 +00:00
Bruce Evans 6fc500878a Get timespecs directly instead of via timevals. 1998-05-16 16:20:50 +00:00
Bruce Evans 7db3328337 Don't abuse `+' to combine flags. 1998-05-16 16:03:10 +00:00
Bruce Evans ba692924a8 Backed out rev.1.76. It just added style bugs. 1998-05-16 15:21:29 +00:00
Bruce Evans bf57f6f9b3 Get timespecs directly instead of via timevals. 1998-05-16 15:11:24 +00:00
KATO Takenori 8e929d6553 Some of newer PC-98 may cause "Windows Protection Fault" when booting
Windows 95 after rebooting FreeBSD without power off.  In PC-98
system, reboot mode is set via I/O port 0x37 in cpu_reset(), and
accessing of this port is the reason of the problem.  To avnoid the
fault, current status of reboot mode should be checked before
accessing the I/O port.
1998-05-16 14:44:11 +00:00
KATO Takenori 0d303cbabf Disable local APIC in UP kernel. Intel specification update describes
that local APIC should be disabled in UP system.  However, some of old
BIOS does not disable local APIC, and virtual wire mode through local
APIC may cause int 15.
1998-05-16 14:38:10 +00:00
Dag-Erling Smørgrav 6110161faa Spotted a misplaced comma in my previous patch. 1998-05-16 14:10:12 +00:00
Dag-Erling Smørgrav 276756a441 Typo nits in SUIDDIR comment (removed some parentheses, moved some
commas, replaced "partition" with "filesystem", reformatted the
paragraph)
1998-05-16 14:08:31 +00:00
Amancio Hasty c1224bb717 1.31 Randall Hopper <rhh@ct.picker.com>
submitted ioctl to clear the video buffer
                           prior to starting video capture
			   Amancio : clean up yuv12 so that it does not
                           affect rgb capture. Basically, fxtv after
                           capturing in yuv12 mode , switching to rgb
                           would cause the video capture to be too bright.
1.32                       disable inverse gamma function for rgb and yuv
                           capture. fixed meteor brightness ioctl it now
                           converts the brightness value from unsigned to
                           signed.
1.33                       added sysctl: hw.bt848.tuner, hw.bt848.reverse_mute,
                           hw.bt848.card
			   card takes a value from 0 to bt848_max_card
                           tuner takes a value from 0 to bt848_max_tuner
                           reverse_mute : 0 no effect, 1 reverse tuner
                           mute function some tuners are wired reversed :(
1998-05-16 07:07:10 +00:00
Garrett Wollman 98271db4d5 Convert socket structures to be type-stable and add a version number.
Define a parameter which indicates the maximum number of sockets in a
system, and use this to size the zone allocators used for sockets and
for certain PCBs.

Convert PF_LOCAL PCB structures to be type-stable and add a version number.

Define an external format for infomation about socket structures and use
it in several places.

Define a mechanism to get all PF_LOCAL and PF_INET PCB lists through
sysctl(3) without blocking network interrupts for an unreasonable
length of time.  This probably still has some bugs and/or race
conditions, but it seems to work well enough on my machines.

It is now possible for `netstat' to get almost all of its information
via the sysctl(3) interface rather than reading kmem (changes to follow).
1998-05-15 20:11:40 +00:00
Garrett Wollman eb92a34766 Fix an obvious parameter-order bogon. (Don't know what happened to
the warning message before.)
1998-05-15 20:02:47 +00:00
John Birrell 6e19590c40 The FreeBSD lkm design is aout specific. 1998-05-15 11:57:05 +00:00
John Dyson 424edf1b6a Disable the auto-Write Combining setup for the pmap code. This
worked on a couple of machines of mine, but appears to cause problems
on others.
1998-05-15 07:25:25 +00:00
Justin T. Gibbs c3f80129dc Fix list corruption and memory leak that could occur when
releasing EISA irqs.
1998-05-14 19:47:38 +00:00
Andrey A. Chernov f46bdbccdb Regenerated syscalls list after signanosleep removing 1998-05-14 14:49:58 +00:00
KATO Takenori 73a9e38355 Sync with sys/i386conf/majors.i386 revision 1.42. 1998-05-14 12:42:11 +00:00
Peter Wemm 9c4aed2ed7 Nuke signanosleep(). (I've left nanosleep1() seperate to nanosleep()
as I don't want to mess with the multiple returns)
1998-05-14 11:31:08 +00:00
Peter Wemm 06b6493558 regen after signanosleep nuke 1998-05-14 11:29:06 +00:00
Peter Wemm 786cf38a29 deep-six signanosleep(). It sounded like a good idea at the time. 1998-05-14 11:28:11 +00:00
Peter Wemm 1973d51bfb Commit an old change that has been sitting around for a long while.
signanosleep() did not deal with signal masks properly.  This change was
based on a discussion with bde some time ago (at least 6 months or more).

signanosleep() should probably go away since it was never really used for
more than a few weeks and doesn't appear in released code.  It should
probably be killed before somebody uses it and it becomes a gratuitous
nonstandard feature.
1998-05-14 10:38:52 +00:00
John Birrell d57ddeeb63 libtcl expects to see ieeefp.h definitions through this header. 1998-05-13 22:40:42 +00:00
Justin T. Gibbs 3d5729017c Fix bogus "cleanup" in bufq_remove. The "switch point" for tqdisksort was
getting mangled.

Submitted by:	Bruce Evans <bde@zeta.org.au>
1998-05-13 16:03:33 +00:00
Jordan K. Hubbard ea66042212 Name cronyx devices correctly. 1998-05-13 12:38:26 +00:00
KATO Takenori cd0ab95415 Sync with sys/i386/isa/sio.c revision 1.201. 1998-05-13 10:42:36 +00:00
KATO Takenori 2b4c22da51 Sync with sys/i386/conf/majors.i386 revision 1.41. 1998-05-13 10:40:32 +00:00
Peter Wemm e4a57cb44a Add missing arg to vget().. Serves me right for committing a 2.2 patch to
-current without testing it there.. :-(

Submitted by: Michael Hancock <michaelh@cet.co.jp>
1998-05-13 07:49:08 +00:00
Poul-Henning Kamp bdb8446393 The PnP code in 2.2.6 detects the Motorola ModemSurfer 56K,
but doesn't do much of anything with it.  I added it to siopnp_ids[]
and it was found and recognized as a serial port.

PR:		6605
Reviewed by:	phk
Submitted by:	Dave Marquardt <marquard@zilker.net>
1998-05-13 07:26:55 +00:00
Peter Wemm 1d1099369a Delete the #if 0 (nearly) duplicate definitions of nfsproto.h. Having
these two files that are almost-but-not-quite the same leads to false grep
hits, confusion etc.

Only installing one copy with a symlink would be nice but that doesn't
work with SHARED=symlinks (it changes the source tree).
1998-05-13 06:40:56 +00:00
Peter Wemm 9733f8ee44 Hold a reference to the vnode during the sillyrename cleanup. If we block
in nfs_vinvalbuf() or the nfs_removeit(), we can have the nfsnode reallocated
from underneath us (eg: replaced by a ufs 'struct inode') which can cause
disk corruption ('freeing free block' when di_db[5] gets trashed).
This is not a cheap fix, but it'll do until the nfsnodes get reference
counting and/or locking.

Apparently NetBSD have a similar fix (apparently from BSDI).

I wish all PR's had this much useful detail. :-)

PR: 6611
Submitted by: Stephen Clawson <sclawson@marker.cs.utah.edu>
1998-05-13 06:10:13 +00:00
Peter Wemm 3b5745a500 Move the *vpp initialization earlier so that it's set in all error cases.
This should stop the 'panic: leaf should not be empty' nfs panic.

PR: 1856
Submitted by: msaitoh@spa.is.uec.ac.jp
1998-05-13 05:47:09 +00:00
John Dyson cfa5644b2b Some temporary fixes to SMP to make it more scheduling and signal friendly.
This is a result of discussions on the mailing lists.  Kudos to those who
have found the issue and created work-arounds.  I have chosen Tor's fix
for now, before we can all work the issue more completely.
Submitted by:		Tor Egge
1998-05-12 18:37:10 +00:00
John Dyson 471176aa5d Fix alot of silly LINT that I left in the code. 1998-05-12 18:28:05 +00:00
Bruce Evans b322fb5d76 Backed out previous commit. It is invalid to call d_ioctl() on
possibly non-open devices, and we don't want to restrict dumping
to swap devices anwyay.  It is especially invalid to call d_ioctl()
in non-process context for panics.  d_psize() can be called on
non-open devices, at least on non-SLICED ones that support d_dump(),
and setdumpdev() has depended on this for a long time although it
is probably wrong, but even d_psize() can't be called in non-process
context - that's why dumpsys() depends on previously computed values
although these values may be stale.  The historical restriction to
devices with dkpart(dev) == SWAP_PART should go away.
1998-05-12 17:34:02 +00:00
Jordan K. Hubbard 56700fcbe6 Reserve major number 99 for vak's cronyx/tau serial driver. 1998-05-12 17:03:24 +00:00
KATO Takenori fd9cfd28fd Sync with sys/i386/isa/wd.c revision 1.167. 1998-05-12 09:32:19 +00:00
KATO Takenori 150bac3199 Sync with sys/i386/conf/options.i386 revision 1.78. 1998-05-12 09:31:44 +00:00
KATO Takenori b0fb6a41a9 Sync with sys/i386/conf/majors.i386 revision 1.40. 1998-05-12 09:31:12 +00:00
John Birrell 56594472c0 Add C++ support.
Submitted by: Russell L. Carter <rcarter@pinyon.org>
              fixes omniORB25 built with g++-2.8.1 on -current
1998-05-12 05:11:51 +00:00
Justin T. Gibbs e2039ecbff Fix the termination test in CIRCLEQ_FOREACH.
Prompted by: Julian Assange <proff@iq.org>
1998-05-12 03:55:25 +00:00
Julian Elischer 5d0957193a Add missing splx()
Submitted by: Luoqi Chen <luoqi@chen.ml.org>
1998-05-11 21:41:13 +00:00
Julian Elischer 336c78bb90 Submitted by: abial@nask.pl
Minor fix to support SLICE in MFS...
1998-05-11 19:27:18 +00:00
Søren Schmidt e855c8bedc Oops, only apply the CHS size from lbasize thing when disk reports
"too big for CHS" ie 16383 cyls..
1998-05-11 15:30:43 +00:00
John Dyson fcf1880fa0 Change some tests from CPU_CLASS686 to CPU_686 as appropriate, and
also correct a serious ommision that would cause process faulures
due to forgetting an invltlb type operatino.  This was just a
transcription problem.
1998-05-11 08:11:57 +00:00
John Dyson 1f56217280 Fix the futimes/undelete/utrace conflict with other BSD's. Note that
the only common  usage of utrace (the possible problem with this
commit) is with malloc, so this should be a real problem.  Add
the various NetBSD syscalls that allow full emulation of their
development environment.
1998-05-11 03:55:28 +00:00
John Dyson 5498a452bc Support better performance with P6 architectures and in SMP
mode.  Unnecessary TLB flushes removed.  More efficient
page zeroing on P6 (modify page only if non-zero.)
1998-05-11 02:13:47 +00:00
John Dyson f0175db1ee Attempt to set write combining mode for graphics devices. 1998-05-11 01:06:08 +00:00
Steve Price a396970306 Add support for the Yamaha YMF-719.
PR:		6348
Submitted by:	Yoshiak Uchikawa <yoshiaki@kt.rim.or.jp>
1998-05-10 23:53:27 +00:00
John Birrell fac6d93b19 Treat all internet addresses as u_int32_t. 1998-05-10 20:51:46 +00:00
Mike Smith 795d035511 Add character major for 'loe' loopback pseudo-ethernet device.
Requested by:	sbabkin@dcn.att.com
1998-05-09 17:52:26 +00:00
Bruce Evans e95ee6a0dc Fixed overflow in sysinit enum constants. In that little-used
language, ANSI C, enum constants must be representable as ints.
We assumed at-least-33-bit ints.  This worked on some 32-bit
systems because we don't mix negative sysinit enum constants with
too-large sysinit enum constants, and the compiler used an unsigned
32-bit type for sysinit enum variables, so sysinit enum variables
were sorted correctly.  The fix lops off 4 hopefully-unused bits
so that we now only assume at-least-29-bit ints.
1998-05-09 12:14:18 +00:00
Dmitrij Tejblum 191e6fd0b6 Fix off by ane error in previous commit.
This caused following commands:
	mkdir z
	cd z
	touch A B
	mv B A
corrupt the '..' entry in 'z'.

Reported by:	bde
1998-05-09 09:36:38 +00:00
Bruce Evans 53a867d577 Translated to C (parameters in a function definition have the same scope
as variables declared in the main block in the function, so shadowing
of parameters by variables declared in the main block is not just an
obfuscation).

Found by:	lint
1998-05-08 07:56:48 +00:00
Julian Elischer 31e22aca20 An effort to make SLICE/DEVFS play with SCSI.
Apparently I didn't make my plans to make dev_t and devsw[] go away
under DEVFS quite clear enough to Peter Dufault as he stitched the SCSI
system together using them when he redid the configuration side of things.
This made is rather an effort to remove all vestiges of dev_t and
devsw[] entries from sd.c in DEVFS/SLICE mode.
1998-05-07 12:13:47 +00:00
KATO Takenori 78f718856a Sync with sys/i386/isa/wd.c revision 1.166. 1998-05-07 08:37:27 +00:00
KATO Takenori 0b9df1bef1 Sync with sys/i386/isa/fd.c revision 1.112. 1998-05-07 08:36:48 +00:00
Mike Smith 7be2d30077 In the words of the submitter:
---------
Make callers of namei() responsible for releasing references or locks
instead of having the underlying filesystems do it.  This eliminates
redundancy in all terminal filesystems and makes it possible for stacked
transport layers such as umapfs or nullfs to operate correctly.

Quality testing was done with testvn, and lat_fs from the lmbench suite.

Some NFS client testing courtesy of Patrik Kudo.

vop_mknod and vop_symlink still release the returned vpp.  vop_rename
still releases 4 vnode arguments before it returns.  These remaining cases
will be corrected in the next set of patches.
---------

Submitted by:	Michael Hancock <michaelh@cet.co.jp>
1998-05-07 04:58:58 +00:00
Julian Elischer 309251a601 cleanup: remove duplicated dump code.
fix oversight on SLICE ioctl code.
1998-05-07 02:05:21 +00:00
Julian Elischer d210b3552c cleanup:
take out duplicated dump code
1998-05-07 01:15:23 +00:00
Eivind Eklund d563a53a79 Unbotch whitespace and change switch with two cases to if.
Noticed by:	bde
1998-05-07 00:42:25 +00:00
Julian Elischer 9b7408fe46 There is no dump routine for fd so give it an explicit NULL entry
in the SLICE table.
1998-05-06 23:35:36 +00:00
Julian Elischer 456fbc3125 Don't call a dump routine if there isn't one. (e.g. in floppy driver) 1998-05-06 23:32:48 +00:00
Julian Elischer 7f2f1b784e Add dump support to the DEVFS/slice code.
now we can actually catch our crashes :-)

Submitted by: Luoqi Chen <luoqi@chen.ml.org> (the man who's everywhere)
1998-05-06 22:14:48 +00:00
Poul-Henning Kamp f64fbf5477 The CHIOGSTATUS ioctl of the SCSI media changer driver (sys/scsi/ch.c)
is broken.  It omits the SCSI_DATA_IN flag in the SCSI READ ELEMENT
STATUS command, which makes the 'chio status' command fail.

PR:		6528
Reviewed by:	phk
Submitted by:	Hans Huebner <hans@artcom.de>
1998-05-06 09:11:20 +00:00
KATO Takenori 9a84338c84 Sync with sys/i386/isa/wd.c revision 1.164. 1998-05-06 08:25:58 +00:00
Mike Smith 79cc756d8b As described by the submitter:
Reverse the VFS_VRELE patch.  Reference counting of vnodes does not need
to be done per-fs.  I noticed this while fixing vfs layering violations.
Doing reference counting in generic code is also the preference cited by
John Heidemann in recent discussions with him.

The implementation of alternative vnode management per-fs is still a valid
requirement for some filesystems but will be revisited sometime later,
most likely using a different framework.

Submitted by:	Michael Hancock <michaelh@cet.co.jp>
1998-05-06 05:29:41 +00:00
Justin T. Gibbs 8fddb21ee2 Implement bus_dmamem_* functions and correct a few nits reported by Peter Wemm. 1998-05-06 01:45:55 +00:00
Justin T. Gibbs bd7b49d9bd Now that we have a TAILQ_PREV() that returns the previous object, simplify
some of the buf_queue inline functions.
1998-05-06 01:44:12 +00:00
John Birrell bd7f824ea4 Change a couple of long types to int to match NetBSD so that termios
works on alpha without any modifications.
1998-05-05 21:49:37 +00:00
Søren Schmidt eb011aea8d Fix the 4-8G LBA geometry it was wrong.
Support >8G drives in CHS mode. This is done by guesstimating the
cylinder count from the LBA size reported. It works on my shiny
new Maxtor 11.5G drive, YMMV.

Reports from users of other big drives (read Quantum bigfoot's)
are welcome...
1998-05-05 14:27:26 +00:00
KATO Takenori a6ed0310a9 Include pc98.h instead of isa.h when PC98 is defined. 1998-05-05 13:21:08 +00:00
KATO Takenori 68b675d4af Deleted unused item. 1998-05-05 13:19:34 +00:00
Guido van Rooij 11ad455083 Refuse accellerated opens on listening sockets that have not set
the TCP_NOPUSH socket option.
This disables TAO for those  services that do not know about T/TCP.

Reviewed by:	Garrett Wollman
Submitted by:	Peter Wemm
1998-05-04 17:59:52 +00:00
John Dyson e60606c0af Correct an error that I made where the vtruncbuf was changed back
to vinvalbuf, but I incorrectly added the "V_SAVE|V_SAVEMETA" flags.
Submitted by:	Luoqi Chen <luoqi@watermarkgroup.com>
1998-05-04 17:43:48 +00:00
John Dyson 96fb8cf258 Fix the shm panic. I mistakenly used the shadow_count to keep the object
from being split, and instead added an OBJ_NOSPLIT.
1998-05-04 17:12:53 +00:00
KATO Takenori 54f5627faa Sync with sys/i386/isa/sio.c revision 1.200. 1998-05-04 11:25:13 +00:00
Poul-Henning Kamp b4362367e0 Detect USR PnP x2 modem.
PR:		6496
Reviewed by:	phk
Submitted by:	Kurt D. Zeilenga <Kurt@Boolean.NET>
1998-05-04 10:35:13 +00:00
KATO Takenori 49621c4a59 Added amd controller to support MELCO IFC-DP SCSI card. 1998-05-04 08:48:23 +00:00
KATO Takenori 841691ff66 Added another PCI to C-bus (ISA bus like 16 bit bus of PC-98) bridge. 1998-05-04 08:16:03 +00:00
KATO Takenori 84e0975d46 Added SMP kernel configuration file for PC-98 machine. 1998-05-04 07:58:36 +00:00
KATO Takenori b30dab363b System clock speed is always detected automatically. 1998-05-04 07:47:33 +00:00
KATO Takenori 2d6d6d4050 Use `0xf8' instead of `IO_NPX' macro to support compiling with `SMP'
option.
1998-05-04 07:33:32 +00:00
KATO Takenori 3c61948518 Support compiling with `gcc -ansi'. 1998-05-04 04:55:36 +00:00
KATO Takenori 230812653e Support compiling with `gcc -ansi'. 1998-05-04 04:41:23 +00:00
John Dyson cbd8ec0902 Work around some VM bugs, the worst being an overly aggressive
swap space free calculation.  More complete fixes will be forthcoming,
in a week.
1998-05-04 03:01:44 +00:00
KATO Takenori b6f8b29d08 Add NEC PC-98 chipsets. 1998-05-04 01:39:48 +00:00
Poul-Henning Kamp b24afdcba1 Patches are given here for pcisupport.c to recognise most of VIA
Technologies' Socket 7 chipsets. This covers all of the Apollo chipsets
except the Master (82C570) and the MVP3, and it also covers the cheap
VXPro and VXTWO knockoffs of the VP1 and VPX.

PR:		6481
Reviewed by:	phk
Submitted by:	Lee Cremeans <lcremean@tidalwave.net>
1998-05-03 08:35:05 +00:00
Stefan Eßer fabdb7f671 Add PCI device IDs for Intel BX PCI chip-set components.
Submitted by:	Steinar Haug <sthaug@nethelp.no>
1998-05-02 22:19:33 +00:00
John Dyson 86524867d1 Another minor cleanup of the split code. Make sure that pages are
busied during the entire time, so that the waits for pages being
unbusy don't make the objects inconsistant.
1998-05-02 06:36:16 +00:00
Peter Wemm 3c33646725 Seatbelts for vm_page_bits() in case a file offset is passed in rather than
the page offset.  If a large file offset was passed in, a large negative
array index could be generated which could cause page faults etc at worst
and file corruption at the least.  (Pages are allocated within file
space on page alignment boundaries, so a file offset being passed in here
is harmless to DTRT.  The case where this was happening has already been
fixed though, this is in case it happens again).

Reviewed by: dyson
1998-05-02 03:02:13 +00:00
KATO Takenori b3a77ee548 Support 1.44MB floppy disk.
Submitted by:	Nobuyuki Koganemaru <kogane@koganemaru.co.jp>,
             	NOKUBI Hirotaka <hnokubi@yyy.or.jp>
1998-05-02 02:06:08 +00:00
Bruce Evans d86cac8647 Don't depend on "implicit int". 1998-05-01 18:30:02 +00:00
Bruce Evans 89f9e39f19 Added -ansi to CWARNFLAGS so that ANSI errors don't come back. 1998-05-01 18:13:37 +00:00
Bruce Evans 5a4c8619d8 Support compiling with `gcc -ansi'. Just use __inline instead of inline.
[__]inline is only used to bloat the code here.  It gives a separate copy
of all the strings for each time this header is included...

Fixed misuse of __P(()).
1998-05-01 18:10:50 +00:00
Bruce Evans 77849078bf Oops, the previous commit should have changed `i386' to `__i386__',
not `__i386'.
1998-05-01 16:40:21 +00:00