Commit Graph

10126 Commits

Author SHA1 Message Date
kato
3e9dd474c5 Deleted KLOCK-hack. 1998-02-26 03:23:56 +00:00
kato
af3ed1f2b5 Sync with sys/i386/conf/majors.i386 revision 1.35. 1998-02-26 03:22:05 +00:00
kato
9bf0b9664d Sync with sys/i386/conf/files.i386 revision 1.193. 1998-02-26 03:21:41 +00:00
kato
e05aaf3fc0 Fixed syntax error by recent changes to the queue macros. 1998-02-26 03:20:41 +00:00
bde
d6ecf50e51 Removed unused #includes. 1998-02-25 13:08:07 +00:00
bde
afa7fc5335 Fixed a syntax error. Strange but correct code was broken by recent
changes to the queue macros.
1998-02-25 11:56:37 +00:00
bde
aced0faa7b Added missing #include of "opt_devfs.h".
Fixed pedantic semantics errors (in ANSI C, static arrays must have
a size, and static objects should be consistently declared as static
unless you know more than anyone should have to know about the
linkage rules).
1998-02-25 07:12:17 +00:00
bde
ddc3e46450 Added a used #include.
"options KEY" is not in LINT, and consequently doesn't actually compile,
even with this change.
1998-02-25 06:41:47 +00:00
bde
ab1cb38049 Removed a stale comment and staler code. 1998-02-25 06:30:15 +00:00
bde
545892cc36 Don't depend on "implicit int" or bloat the data section in the
declaration of ptc_devsw_installed.

Fixed a spelling error.
1998-02-25 06:19:15 +00:00
bde
86773632dc Don't depend on "implicit int". 1998-02-25 06:16:37 +00:00
bde
8d08d0861d Declare function pointer args as pointers, not as functions. 1998-02-25 06:13:32 +00:00
bde
dbc901caa3 Fixed a missing newline in a debugging printf.
Fixed punctuation in some comments.
1998-02-25 06:04:46 +00:00
bde
0a6cc7edf3 Removed unused #includes. 1998-02-25 05:58:50 +00:00
bde
43853a093f Removed redundant test against MAXDSIZ (the rlimit test is stronger). 1998-02-25 05:33:06 +00:00
bde
c813e9535a Fixed missing permissions checking for mounting by non-root.
There is now less need for the vfs.usermount sysctl.  msdosfs already
has this change, modulo a missing LK_RETRY, via NetBSD.  At least
ext2fs is missing this and many other changes from Lite2.

Obtained from:	Lite2
1998-02-25 04:47:04 +00:00
bde
08e1b39f73 Fixed the calculation of `delta' in settime(). We once set all
times consistently wrong (up to 1 tick too late), but recent changes
fixed the setting of the main clock, making other times inconsistent.
The inconsistencies tended to show up as a negative resource usage
for the process that set the time.

Fixed the check for setting the clock backwards.  A stale timestamp
(`time') was checked, so it was possible to set the clock backwards
by up to almost 1 tick.  Until recently, this bug was compensated
for by setting the clock consistently wrong.

Merged the comment about setting the clock backwards from Lite2.

Removed latency micro-optimizations/speed pessimizations in settime().
microtime() and set_timecounter() are relatively expensive, and
they must be called together with clock updates blocked to get a
consistent `delta', so significant latency optimizations are not
possible.

Removed some stale comments.
1998-02-25 04:10:32 +00:00
dyson
f4877bbdde Fix page prezeroing for SMP, and fix some potential paging-in-progress
hangs.  The paging-in-progress diagnosis was a result of Tor Egge's
excellent detective work.
Submitted by:	Partially from Tor Egge.
1998-02-25 03:56:15 +00:00
julian
9521fdf478 OOPs typo TCF, not TCP.... 1998-02-25 02:35:35 +00:00
bde
ba4be6db5e Removed vestiges of previous microtime() implementation. 1998-02-25 02:20:30 +00:00
bde
3e317f618c Removed _POSIX_SOURCE ifdef. This is not a POSIX.1 header. 1998-02-25 02:17:46 +00:00
bde
b479a168a1 Removed _POSIX_SOURCE ifdefs. This is not a POSIX.1 header, so POSIX
sources can't include it.  However, until recently it was included
by <sys/stat.h>, so it should have been (almost) entirely inside
_POSIX_SOURCE ifdefs for <sys/stat.h> to be (almost) POSIX.1 conformant,
but it was only about half inside _POSIX_SOURCE ifdefs.
1998-02-25 02:14:14 +00:00
julian
c227ace57a Bring our in.h up to date with respect to allocated
IP protocol numbers. It is possible that the names may require tuning,
but the numbers represent what is in rfc1700 which is the present
active RFC.
1998-02-25 02:14:03 +00:00
bde
e7f7922021 Don't include <sys/time.h> if _POSIX_SOURCE is defined. This fixes
longstanding namespace pollution.  The need for the pollution
(unconditional use of timespecs) went away in the first round of
Lite2 merges (rev.1.7 for stat.h), but <sys.time.h> was still
unconditionally included, and a stale comment about the need for
the pollution was not removed.
1998-02-25 02:00:44 +00:00
bde
9450ce931b Don't add files handled by bsd.kmod.mk to CLEANFILES. Don't add never-
generated files to CLEANFILES.
1998-02-25 01:40:55 +00:00
phk
9fbd3913b5 Add loran0 to LINT 1998-02-24 22:24:46 +00:00
phk
5ab03fc7da Add the smallest and least useful device-driver by a fair margin... 1998-02-24 22:08:05 +00:00
julian
87ecd78e8c Add the 'do/while hack' to all the queue macros
to allow them to be more generally used.

Submitted by: Kirk McKusick (from some of his trees)
(possibly some cleanups to follow)
1998-02-24 17:27:23 +00:00
ache
6ed9428164 Back out "always view in lowercase" part
Return to previous variant "comparing in lowercase" in winChkName
1998-02-24 14:13:16 +00:00
sos
b27cd8483b Add the Intel 82371SB USB host controller to the known list. 1998-02-24 12:15:34 +00:00
dyson
bda8638dfe Correct some severe VM tuning problems for small systems (<=16MB), and
improve tuning on larger systems.  (A couple of the VM tuning params for
small systems were so badly chosen that the system could hang under load.)

The broken tuning was originaly my fault.
1998-02-24 10:16:23 +00:00
bde
b7aad3824b MF22: removed duplicate #include of <sys.cdefs.h> and fixed comments about
the main #include of it.

Fixed disordering of _BSD_CLOCKID_T.

Removed forward declarations of "common" structs.  The declarations are
now made closer to where they are used.
1998-02-24 02:11:39 +00:00
bde
3edb2566c8 Forward declare more structs that are used in prototypes here - don't
depend on <sys/types.h> forward declaring common ones.
1998-02-24 02:01:11 +00:00
ache
31dac9959c Implement loadable DOS<->local conversion tables for DOS names
Always create DOS name in uppercase
Always view DOS name in lowercase
1998-02-23 16:44:37 +00:00
steve
f5140f32cd Use port 0x110 to avoid PNP conflicts.
PR:		5614, 5781
1998-02-23 15:02:59 +00:00
kato
50878f4c43 Fix signatures of NEC's DOS formats.
Submitted by:	Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
1998-02-23 14:57:50 +00:00
kato
e8e837fcee Sync with sys/i386/isa/clock.c revision 1.113. 1998-02-23 12:24:27 +00:00
kato
601978e62e Removed unused file (sync with sys/i386/i386/microtime.s). 1998-02-23 12:23:23 +00:00
ache
73b4aeb40e Oops, add missing bcopy of upper->lower table 1998-02-23 09:59:08 +00:00
ache
e5da5c2352 Implement loadable upper->lower local conversion table 1998-02-23 09:39:29 +00:00
dyson
b56a7b6d67 Significantly improve the efficiency of the swap pager, which appears to
have declined due to code-rot over time.  The swap pager rundown code
has been clean-up, and unneeded wakeups removed.  Lots of splbio's
are changed to splvm's.  Also, set the dynamic tunables for the
pageout daemon to be more sane for larger systems (thereby decreasing
the daemon overheadla.)
1998-02-23 08:22:48 +00:00
dyson
4c5286f747 Try to dynamically size the VM_KMEM_SIZE (but is still able to be overridden
in a way identically as before.)  I had problems with the system properly
handling the number of vnodes when there is alot of system memory, and the
default VM_KMEM_SIZE.  Two new options "VM_KMEM_SIZE_SCALE" and
"VM_KMEM_SIZE_MAX" have been added to support better auto-sizing for systems
with greater than 128MB.

Add some accouting for vm_zone memory allocations, and provide properly
for vm_zone allocations out of the kmem_map.  Also move the vm_zone
allocation stats to the VM OID tree from the KERN OID tree.
1998-02-23 07:42:43 +00:00
dyson
699c8f0858 Try to dynamically size the VM_KMEM_SIZE (but is still able to be overridden
in a way identically as before.)  I had problems with the system properly
handling the number of vnodes when there is alot of system memory, and the
default VM_KMEM_SIZE.  Two new options "VM_KMEM_SIZE_SCALE" and
"VM_KMEM_SIZE_MAX" have been added to support better auto-sizing for systems
with greater than 128MB.
1998-02-23 07:41:23 +00:00
dyson
17d240b970 Clean-up the vget mechanism by permanently attaching VM objects to
vnodes, therefore vget doesn't need to do so anymore.  Other minor
improvements include the temp free vnode queue obeying the VAGE
flag and a printf that warns of to-be-removed code being executed.
1998-02-23 06:59:52 +00:00
bde
f338c424e6 Quick fix for the i8254 timecounter often gaining 10 msec. 1998-02-23 00:11:25 +00:00
ache
7a58eca8ad Reduce new arguments number added in my changes 1998-02-22 18:00:54 +00:00
ache
e0cf8b63c1 Add Unicode support to winChkName, now lookup works! 1998-02-22 17:26:27 +00:00
ache
f30f2030fe Implement loadable local<->unicode file names conversion
Note: it produce correct names only for Win95, DOS names are still
incorrect and need similar work
mount_msdos support coming soon
1998-02-22 15:09:54 +00:00
kato
dfa5aea49d Sync with sys/i386/isa/clock.c revision 1.112. 1998-02-22 13:44:39 +00:00
ache
be290ccdbc Replace all unknown Unicode characters with '?' in win->unix mapping 1998-02-22 12:22:23 +00:00
ache
cfd2cff77d Add initial support to map 0x4XX Unicode Cyrillic range names:
only win->unix part is implemented at this time with 256-byte
table defaulted to KOI8-R (will be loadable in future).
Since back mapping not supported yet, you'll get "No such file or directory"
on each Cyrillic name with 'ls -l', only 'echo *' work at this moment.
Teach current code to understand Unicode a bit.
1998-02-22 12:05:42 +00:00
dg
7f62231983 The changes I had made long ago to support >32 disk-type units was
incomplete; dkmakeminor was broken for >32. I noticed this when trying
to use more than 32 ccd units on wcarchive.
Reviewed by:	bde
1998-02-22 10:11:23 +00:00
jkh
df743c09c1 Properly bzero() structures after they're returned from getccdbuf().
Submitted by:	Chris Csanady <ccsanady@friley585.res.iastate.edu>
1998-02-22 10:01:23 +00:00
jkh
9c6531d7fc MF22: correct comments. 1998-02-22 01:17:51 +00:00
jkh
ca29031047 Add missing CLOCK_UNLOCK() before write_eflags().
Submitted by:	dave adkins <adkin003@tc.umn.edu>
1998-02-21 20:45:27 +00:00
jkh
f081c30c41 MF22: CODA entries.
Submitted by:	"Robert.V.Baron" <rvb@GLUCK.CODA.CS.CMU.EDU>
1998-02-21 19:24:36 +00:00
jkh
db4b67d71a MF22: CODA entries. They'll have to rework their usage of malloc
somewhat in -current before this will work, but these should at least
serve as place-holders.
1998-02-21 19:23:04 +00:00
nate
aa17b0a9e6 there is a minor bug in sb_dsp.c -- the driver
reports ESS cards as able to do 16-bit, but it has no support for it.

Submitted by:	Luigi Rizzo <luigi@labinfo.iet.unipi.it>
1998-02-21 17:53:04 +00:00
nate
fab2832547 A minor bugfix for my audio driver and pcaudio. The problem is with
signals delivered to a process writing to the audio device the
system: if you try

        cat /dev/zero > /dev/dsp (or cat /dev/zero > /dev/pcaudio)

and press Ctrl-C : for a second or two the system appears to freeze
(e.g. the cursor will disappear if you move the mouse, xclock
blocks, etc.). I think that interrupts etc. still run so the problem
is not too terrible, but still annoying

[ The problems appears to also be in isa/pcaudio.c, though that is ignored ]

Submitted by:	Luigi Rizzo <luigi@labinfo.iet.unipi.it>
1998-02-21 17:51:39 +00:00
kato
76e94a3dd2 Make pc98 options new-style. 1998-02-21 16:17:55 +00:00
kato
9c52c190e0 Oops, previous commit was incomplete. 1998-02-21 15:54:23 +00:00
kato
622aa92a6e Sync with sys/i386/isa/clock.c revision 1.111. 1998-02-21 15:52:40 +00:00
kato
7a2e5380a2 Sync with sys/i386/isa/spkr.c revision 1.33. 1998-02-21 15:51:51 +00:00
kato
9f70fc00bd Sync with sys/i386/conf/options.i386 revision 1.21. 1998-02-21 15:50:26 +00:00
kato
0fc38fbee0 Sync with sys/i386/conf/majors.i386 revision 1.34. 1998-02-21 15:49:45 +00:00
kato
f1119299b5 Sync with sys/i386/conf/files.i386 revision 1.192. 1998-02-21 15:49:03 +00:00
eivind
feafa78ba5 Make TUNE_1542 a new-style option, and enable this option in LINT. It
has been disabled since 1994 by mistake (or at least I hope so :-)
1998-02-21 10:11:43 +00:00
gpalmer
3a334c3206 Add $Id$ 1998-02-21 05:35:02 +00:00
gpalmer
287e8cbc62 Provide a missing parameter to printf to stop the kernel from panicing. 1998-02-21 04:32:56 +00:00
jb
504c96bf18 Add #ifndef _POSIX_SOURCE around the timecounter definitions
which rely on u_int being defined in sys/types.h, but isn't
if _POSIX_SOURCE is defined.

This fixes the gnu/lib/libstdc++ breakage. I've successfully completed
a make world after this and a kernel (without many devices).
1998-02-21 03:20:46 +00:00
jkh
533a1f70af Reserve cdev 93 for CODA filesystem.
Submitted by:	"Robert.V.Baron" <rvb@GLUCK.CODA.CS.CMU.EDU>
1998-02-20 23:55:32 +00:00
jkh
2687e4d97a Update to "stable-167" release; totally reimplements media detection.
Submitted by:	Ustimenko Semen <semen@iclub.nsu.ru>
1998-02-20 18:08:46 +00:00
phk
21e5e5ce0f Replace TOD clock code with more systematic approach.
Highlights:
    * Simple model for underlying hardware.
    * Hardware basis for timekeeping can be changed on the fly.
    * Only one hardware clock responsible for TOD keeping.
    * Provides a real nanotime() function.
    * Time granularity: .232E-18 seconds.
    * Frequency granularity:  .238E-12 s/s
    * Frequency adjustment is continuous in time.
    * Less overhead for frequency adjustment.
    * Improves xntpd performance.

Reviewed by:    bde, bde, bde
1998-02-20 16:36:17 +00:00
bde
83d0eb9fe6 Removed default tags target. PROG is always defined here, so ifdefing
it was bogus, and without the ifdef the default is identical to the
central one in bsd.dep.mk.
1998-02-20 15:52:49 +00:00
bde
da9d674c0d Staticized.
Don't depend on "implicit int".
1998-02-20 13:52:15 +00:00
bde
ca131e1be0 Don't depend on "implicit int" or bloat the data section in the
declaration of xxx_devsw_installed.
1998-02-20 13:46:58 +00:00
bde
3de653d6b4 Don't depend on "implicit int". 1998-02-20 13:37:40 +00:00
bde
764fc0e817 Removed unused debugging variables and macros.
Don't depend on "implicit int" or bloat the data section in the
declaration of vn_devsw_installed.
1998-02-20 13:27:36 +00:00
bde
d30d9168f9 Removed unused #includes. 1998-02-20 13:11:54 +00:00
bde
e2a06e521b Fixed some stale comments about console drivers.
Uncommented css0.  It compiles OK.

Moved trix0 so that it compiles OK when uncommented.  Uncommented
it.  Drivers with the same interrupt handler must be together in
config files so that config(8)'s simple avoidance of redundant
declarations of interrupt handlers works (config emits a declaration
unless it would duplicate the previous one).

Commented out NO_LKM.  Negative options should not be configured
in LINT.  There should be no negative options for subsystems.
LKMs should never have been standard or the default.
1998-02-20 12:27:28 +00:00
kato
e7a4081c42 Sync with sys/i386/isa/lpt.c revision 1.167. 1998-02-20 12:25:23 +00:00
kato
3448f400bb Sync with sys/i386/conf/majors.i386 revision 1.33. 1998-02-20 12:24:18 +00:00
jb
6e5b7de616 Test for the existance of ${MACHINE}/boot before trying to build it.
The PC98 stuff in this makefile should be removed and that system
should build with MACHINE=pc98 and MACHINE_ARCH=i386.
1998-02-20 07:37:08 +00:00
steve
cf4a8e7030 Don't propogate *_DEBUG options. Use DEBUG and recompile
only those parts of the kernel that you are interested in.

Prodded by:	Bruce Evans <bde@zeta.org.au>
1998-02-20 04:19:39 +00:00
ahasty
c7e5fce812 Move Luigi's I2CWR ioctl from the video_ioctl section to the
tuner_ioctl section. Changed Major device from 79 to 92 and reserved
our Major device number -- hasty@star-gate.com
1998-02-20 03:55:17 +00:00
steve
02be73f318 Cleanup the lpt for probe code.
PR:		5773
Submitted by:	Dag-Erling Coidan Smorgrav <dag-erli@ifi.uio.no>
1998-02-20 02:44:48 +00:00
steve
6a611bbb9c Add an LPT_DEBUG option.
PR:		5773
Submitted by:	Dag-Erling Coidan Smorgrav <dag-erli@ifi.uio.no>
1998-02-20 02:44:18 +00:00
fenner
dcb9d92a93 Revert sosend() to its behavior from 4.3-Tahoe and before: if
so_error is set, clear it before returning it.  The behavior
introduced in 4.3-Reno (to not clear so_error) causes potentially
transient errors (e.g.  ECONNREFUSED if the other end hasn't opened
its socket yet) to be permanent on connected datagram sockets that
are only used for writing.

(soreceive() clears so_error before returning it, as does
getsockopt(...,SO_ERROR,...).)

Submitted by:	Van Jacobson <van@ee.lbl.gov>, via a comment in the vat sources.
1998-02-19 19:38:20 +00:00
msmith
52cfdc374f Move the 'sw' device off block major #1, which is now occupied by 'wfd'. 1998-02-19 12:15:06 +00:00
kato
1f901011ac Sync with sys/i386/conf/majors.1.31. 1998-02-19 08:43:25 +00:00
kato
e30996b013 Sync with sys/i386/conf/files.i386 revision 1.191. 1998-02-19 08:42:57 +00:00
jkh
83057aa115 91 vinum RAID fs
Requested by:	grog
1998-02-19 01:33:29 +00:00
msmith
69dfcb7f44 Don't reference (nonesxistent) qcam module. 1998-02-18 14:30:07 +00:00
msmith
4969529221 Remove the 'qcam' driver. Development has ceased, and the driver is
nonfunctional.
Submitted by:	pst (conversation some time ago)
1998-02-18 13:43:59 +00:00
kato
9f3f9a1e90 Sync with sys/i386/conf/majors.i386 revision 1.29. 1998-02-18 12:34:32 +00:00
kato
23643fa17c Sync with sys/i386/conf/files.i386 revision 1.190. 1998-02-18 12:34:01 +00:00
kato
19232b6374 Sync with sys/i386/conf/devices.i386 revision 1.13. 1998-02-18 12:33:34 +00:00
msmith
60aa5b6a1d Put the SC_Q_NO_TAGS value in the correct field for the Iomega Jaz quirk
entry, and move it down with the other NO_TAGS device.
Submitted by:	bde
1998-02-18 09:40:54 +00:00
jkh
cad2ff6eeb Update MSDOSFS code using NetBSD's msdosfs as a guide to support
FAT32 partitions.  Unfortunately, we looked around here at
Walnut Creek CDROM for any newer FAT32-supporting versions
of Win95 and we were unsuccessful; only the older stuff here.
So this is untested beyond simply making sure it compiles and
someone with access to an actual FAT32 fs will have
to let us know how well it actually works.
Submitted by:	Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Obtained from:	NetBSD
1998-02-18 09:28:47 +00:00
scrappy
4f23df473c soundcard.h wasn't upgraded when i386/isa/snd was 1998-02-18 02:27:00 +00:00