Commit Graph

10605 Commits

Author SHA1 Message Date
gibbs
d4f3e52d2b 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
jb
f0607ab21d 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
sos
e57657ce89 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
9d55c8f6ae Include pc98.h instead of isa.h when PC98 is defined. 1998-05-05 13:21:08 +00:00
kato
da46d40623 Deleted unused item. 1998-05-05 13:19:34 +00:00
guido
8d0d7f7ab4 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
dyson
7f7985f11a 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
dyson
65fbc3a74d 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
135d8c12b7 Sync with sys/i386/isa/sio.c revision 1.200. 1998-05-04 11:25:13 +00:00
phk
3a0a98290a 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
7096376a27 Added amd controller to support MELCO IFC-DP SCSI card. 1998-05-04 08:48:23 +00:00
kato
4b12a632af 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
03e1d14891 Added SMP kernel configuration file for PC-98 machine. 1998-05-04 07:58:36 +00:00
kato
6bcae43cf0 System clock speed is always detected automatically. 1998-05-04 07:47:33 +00:00
kato
5b24859e0e Use 0xf8' instead of IO_NPX' macro to support compiling with `SMP'
option.
1998-05-04 07:33:32 +00:00
kato
7f67020e81 Support compiling with `gcc -ansi'. 1998-05-04 04:55:36 +00:00
kato
0ef629725d Support compiling with `gcc -ansi'. 1998-05-04 04:41:23 +00:00
dyson
dfdb369a7d 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
cb4694032f Add NEC PC-98 chipsets. 1998-05-04 01:39:48 +00:00
phk
9ec9823f3d 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
se
98ac0f0178 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
dyson
d1eb14c5f6 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
fc934d7995 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
baae139725 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
bde
21cbeb52db Don't depend on "implicit int". 1998-05-01 18:30:02 +00:00
bde
f5d79ab0c0 Added -ansi to CWARNFLAGS so that ANSI errors don't come back. 1998-05-01 18:13:37 +00:00
bde
f557c431ce 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
bde
e5f7e85071 Oops, the previous commit should have changed i386' to __i386__',
not `__i386'.
1998-05-01 16:40:21 +00:00
bde
004d5369f3 Partially fixed write clustering for cases where cluster_wbuild() is
called from vfs_bio_awrite() without going through cluster_write()
or ufs_bmaparray(), in particular for all writes to block disk devices.
Only ufs_bmaparray() sets vp->v_maxio in a correct way, and it doesn't
seem to be called early enough even for regular files.
1998-05-01 16:29:27 +00:00
peter
dfa49715ca vm_page_is_valid() wasn't expecting a large offset argument, it's
expecting a sub-page offset.  We were passing the file position,
and vm_page_bits() could do some interesting things when base was
larger PAGE_SIZE.
if (size > PAGE_SIZE - base)
	size = PAGE_SIZE - base;
is interesting when (PAGE_SIZE - base) is negative.  I could imagine that
this could have interesting consequences for memory page -> device block
bit validation.
1998-05-01 15:10:59 +00:00
peter
e5ab5108e0 Fix one problem with NFSv3 > 2GB file support.
Submitted by: bde
1998-05-01 15:04:35 +00:00
dyson
7835943279 Fix minor bug with new over used swap fix. 1998-05-01 02:25:29 +00:00
phk
ee66bf4cbc Loopback network interface driver (net/if_loop.c) has no SIOCSIFFLAGS
ioctl handler.

PR:		6466
Reviewed by:	phk
Submitted by:	Ruslan Ermilov <ru@ucb.crimea.ua>
1998-04-30 19:37:00 +00:00
jb
0e07a10674 Make errno finally and permanently thread-aware so that it is no longer
necessary to compile with _THREAD_SAFE defined. This means that people
will get thread-aware code whether they like it or not. This change
is required to allow a process to link against libpthread and libc
to use kernel threads (and prevent each thread from clobbering another
thread's errno just be doing a syscall).

This is bound to break some ports, but it is strictly allowed by ANSI C,
so anything that breaks as a result was already broken anyway 8-).
"Sorry".
1998-04-30 09:38:03 +00:00
dyson
224581813c Fix an error that I made with an optimization. In the case
of softupdates, we need to do vtruncbuf the old way.  Luoqi
caught, found the bug and submitted this fix.
Submitted by:	Luoqi Chen <luoqi@chen.ml.org>
1998-04-30 05:28:53 +00:00
imp
307c5832d7 Use ${.TARGET} rather than $@. i386 tested, pc98 untested because config
on my box doesn't grok machine type pc98.
PR:		3272
Submitted by:	jhs
1998-04-29 18:21:35 +00:00
andreas
e4bced7382 Fixes incorrect company and product names in uha(4) manpage and
LINT config file. Should be merged to -STABLE as well.
PR:		closes 6447
Submitted by:	Steven Plite splite@purdue.edu
1998-04-29 17:09:41 +00:00
dt
0e69a77105 Use DFLTBSIZE instead of MAXBSIZE for pm_fatblksize.
In msdosfs_sync: spelling fix, formatting changes; fix MNT_LAZY (sync
modified denodes, don't sync device)

Mostly submitted by (and with hints from):	bde

Increase limit for maximum disk size: as far as I can see previous limit was
gratuitously too low.
1998-04-29 12:55:51 +00:00
kato
a44088edc8 Sync with sys/i386/i386/trap.c revision 1.127. 1998-04-29 09:45:38 +00:00
dyson
a7cf05f1b7 Add a needed prototype, and fix a panic problem with the new
memory code.
1998-04-29 06:59:08 +00:00
max
42ba449fff Add "flags 0x10" to the sio0 entry so that SMP-GENERIC acts in thesame
manner as the GENERIC kernel to the -h option.
1998-04-29 06:58:43 +00:00
dyson
b5a79794cd Tighten up management of memory and swap space during map allocation,
deallocation cycles.  This should provide a measurable improvement
on swap and memory allocation on loaded systems.  It is unlikely a
complete solution.  Also, provide more map info with procfs.
Chuck Cranor spurred on this improvement.
1998-04-29 04:28:22 +00:00
eivind
67c7bb9c04 Translate T_PROTFLT to SIGSEGV instead of SIGBUS when running under
Linux emulation.  This make Allegro Common Lisp 4.3 work under
FreeBSD!

Submitted by: Fred Gilham <gilham@csl.sri.com>
Commented on by: bde, dg, msmith, tg
Hoping he got everything right:  eivind
1998-04-28 18:15:08 +00:00
dyson
36e092b938 Fix a pseudo-swap leak problem. This mitigates "leaks" due to
freeing partial objects, not freeing entire objects didn't
free any of it.  Simple fix to the map code.
Reviewed by:	dg
1998-04-28 05:54:47 +00:00
julian
7353226d84 Submitted by: Doug Ambrisko <ambrisko@whistle.com>
make standard links for the first detected sound card.
1998-04-28 00:10:53 +00:00
des
1278274147 Cast return values to the appropriate fp_*_t. Note that the man page
incorrectly refers to them as e.g. fp_except rather than fp_except_t.

PR:		misc/6310
Submitted by:	Niall Smart
1998-04-27 14:17:30 +00:00
des
1e8b395cf1 Fixed spelling of "fictitious" in diagnostics and comments
PR:		kern/6429
1998-04-27 11:36:06 +00:00
brian
5270239bec Support more than 256 tun devices:
$ ls -l /dev/tun25[4-7]
crw-------  1 fax  dialer   52, 254 Apr 27 02:27 /dev/tun254
crw-------  1 fax  dialer   52, 255 Apr 27 02:27 /dev/tun255
crw-------  1 fax  dialer   52, 0x00010000 Apr 27 02:31 /dev/tun256
crw-------  1 fax  dialer   52, 0x00010001 Apr 27 02:31 /dev/tun257
1998-04-27 01:44:22 +00:00
dyson
776fdaf7cf Add the PAT cpuid feature. 1998-04-26 03:18:38 +00:00
kato
803f1dcc1d Sync with sys/i386/isa/wd.c revision up to 1.163. 1998-04-25 05:19:33 +00:00
dyson
888e1a851b Correct copyright. 1998-04-25 04:50:03 +00:00
kato
b73332da4c Sync with sys/i386/isa/wd.c revision 1.161. 1998-04-25 04:27:54 +00:00
kato
68daaf494d Sync with sys/i386/conf/GENERIC revision 1.108. 1998-04-25 04:27:15 +00:00
mjacob
7d48e85bb7 Oops- osreldate.h is not around like I thought it would be... hmmm.. quick fix to get around this 1998-04-24 18:23:20 +00:00
obrien
fea3a33427 Discussed with: bde 1998-04-24 11:50:30 +00:00
obrien
82338a65ac Create virgin disklabels with 8 (MAXPARTITIONS) partitions rather than
three (RAW_PART + 1);
This makes ``disklabel -Brw sdN auto'' do the Right Thing.
1998-04-24 11:49:57 +00:00
dg
c0b0bc1742 At the request of Garrett, changed sysctl:
net.inet.tcp.delack_enabled -> net.inet.tcp.delayed_ack
1998-04-24 10:08:57 +00:00
dg
a30ffaa134 Ensure that TCP_REXMTVAL doesn't return a value less than t_rttmin. This
is believed to have been broken with the Brakmo/Peterson srtt
calculation changes. The result of this bug is that TCP connections
could time out extremely quickly (in 12 seconds).
Also backed out jdp's partial fix for this problem in rev 1.17 of
tcp_timer.c as it is obsoleted by this commit.
Bug was pointed out by Kevin Lehey <kml@roller.nas.nasa.gov>.

PR:	6068
1998-04-24 09:25:39 +00:00
julian
de78d409f5 slice_device.c: permissions changes for SLICE devices
vn.c:		change time of SYSINIT scheduling.
wd.c		don't revert to fully closed state. ( may require more)
all in SLICE mode only.
1998-04-24 07:54:00 +00:00
dg
3253b48e39 Added kern.ipc.nmbclusters 1998-04-24 04:15:52 +00:00
julian
740cb0899a When calling the open function, specify either FREAD and/or FWRITE
as leaving them both 0 has the same effect as not openning the device at all.
1998-04-23 22:09:55 +00:00
julian
7b5f18bb24 Oops forgot to include opt_bootp.h
Bootp works a lot better with devfs if this is present.
1998-04-23 20:59:42 +00:00
eivind
2297a9666d Convert timespecclear() back to an expression (this time without
sideeffects).
1998-04-23 14:12:06 +00:00
eivind
a325280132 Wrap timerclear in do { ... } while(0) 1998-04-23 00:11:32 +00:00
eivind
1c00798cb4 Add devfs support.
Submitted by:	somebody whose name escapes me :-(
1998-04-23 00:06:43 +00:00
tegge
3135dafcdb Mask the interrupt before setting the corresponding bit in ipending if
the interrupt is already active.
Don't use lock prefix for operations on ipending.
Always use lock prefix for operations on iactive.
1998-04-22 22:49:29 +00:00
julian
ed0da47a02 Bad144 support for the slice system (!)
Submitted by: luoqi@watermarkgroup.com (Luoqi Chen)

I'm amazed by this. Slice has only been checked in for 2 days..
1998-04-22 19:27:54 +00:00
mjacob
efb500c7ac Add support for the Qlogic ISP SCSI && FC/AL Adapters 1998-04-22 18:18:16 +00:00
mjacob
8cd3efb7df Add support for the Qlogic ISP SCSI && FC/AL Adapters 1998-04-22 18:12:29 +00:00
mjacob
a9113b6f9b Add support for the Qlogic ISP SCSI && FC/AL Adapters 1998-04-22 17:54:58 +00:00
kato
d272f774b9 Sync with sys/i386/conf/majors.i386 revision 1.39. 1998-04-22 13:35:21 +00:00
julian
db37f632a0 close() is no longer a SLICE method.
Close is simply an open with no-read and no-write once internal to SLICE
(it still exports a close to the rest of the kernel)
1998-04-22 10:25:27 +00:00
peter
2fe90b3e89 Add a couple of missing symbols referred to in asm code. 1998-04-22 09:46:16 +00:00
msmith
cf01114fc4 Add a block device entry for the 'myx' driver too. 1998-04-22 05:10:51 +00:00
msmith
055b4ba647 Add 'myx' for Ulf Zimmerman's Mylex Raid driver (ulf@alameda.net> 1998-04-22 03:57:07 +00:00
julian
b8c5fe2677 Don't allow an open to succeed if the device is invalidated during the
open process.
1998-04-22 01:51:34 +00:00
brian
7914b665ae - breakage of the warnings about pessimized i/o port types.
- pessimized i/o port types.
- other pessimized types.
- Don't use DEBUG (causes LINT warnings).  Use DGB_DEBUG instead.
- commented out code.
- cloned code that doesn't apply ("Smarts" is for the cy driver only).

Submitted by: bde
1998-04-21 21:06:57 +00:00
brian
c38ab8d4d9 Correct the digiboard device names in agreement
with the man page (POLA).
1998-04-21 21:06:22 +00:00
julian
119056be05 Remove the artificial limit on the size of the ipfw filter structure.
This allows the addition of extra fields if we need them (I have plans).
1998-04-21 18:54:53 +00:00
kato
bcf7320f72 PC-98 does not supports DMA automode lager than 65535 bytes. 1998-04-21 09:48:45 +00:00
kato
7e90e65464 Supports PC-98 again. 1998-04-21 09:46:14 +00:00
brian
b0d3f4311f o Move debug stuff down a bit so that it doesn't try to
dereference uninitialized pointers.
o Fix DEVFS permissions
o Fix DEVFS minor numbers
o Add initial & lock devices for cua device.
o Fix permissions in line with sio.
1998-04-21 02:39:48 +00:00
julian
3f128f8b37 The 'mountroot' option is obviously pointless for an LKM
so allow LKM compilation to succeed by making it go away for that case.
Saves needing to include opt_devfs.h which an LKM cannot rely on anyhow.
1998-04-20 23:18:46 +00:00
julian
079b7f7a37 Remove more LFS left-overs 1998-04-20 21:54:19 +00:00
julian
2b33b192cb Remove an LFS clause, now that it is in the history,
anyone who wants to see what was needed cto revive LFS can see it.
1998-04-20 21:53:07 +00:00
sos
9a3b7a05d1 Enable DEVFS usage of the device (include opt_devfs.h> 1998-04-20 18:51:33 +00:00
nate
56d762105b - Give up trying for a simple solution for correctly recognizing if a card
was really removed, or simply 'faked' by a suspend/resume.  Keep track
  of both current and previous state, and send that information to the
  userland programs.

[
XXX - This breaks binary compatability with older pccardd programs, but
they don't work reliably. :(
]
1998-04-20 15:21:02 +00:00
nate
26ef0a3053 - Only poll the PCIC controller for insertion/removal events if the
controller hasn't been assigned an IRQ.
1998-04-20 15:15:20 +00:00
kato
29088df8fe Commented out ide_pci.c.
Reviewed by:	kato
Submitted by:	Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
1998-04-20 13:54:47 +00:00
kato
338316476f Sync with sys/i386/conf/options.i386 revision 1.77. 1998-04-20 13:52:44 +00:00
kato
19f503b193 Sync with sys/i386/conf/files.i386 revision 1.197. 1998-04-20 13:52:13 +00:00
kato
46d1280c68 Sync with sys/i386/isa/wd.c revision up to 1.159. 1998-04-20 13:51:34 +00:00
kato
cee05f2120 Sync with sys/i386/isa/fd.c revision 1.109. 1998-04-20 13:50:58 +00:00
kato
aede69f3c2 Sync with sys/i386/isa/npx.c revision 1.60. 1998-04-20 13:50:21 +00:00
julian
c8c70109a1 fix typo in copyright. 1998-04-20 04:55:17 +00:00
julian
8ec756211b Get rid of DEVFS_ROOT
it no longer has any effect.

SLICE is in some ways a replacement but is destined to also go away.
1998-04-20 04:30:47 +00:00
julian
cb9166e241 Make the devfs SLICE option a standard type option.
(hopefully it will go away eventually anyhow)
1998-04-20 03:57:41 +00:00
julian
0796a5c56e Add changes and code to implement a functional DEVFS.
This code will be turned on with the TWO options
DEVFS and SLICE. (see LINT)
Two labels PRE_DEVFS_SLICE and POST_DEVFS_SLICE will deliniate these changes.

/dev will be automatically mounted by init (thanks phk)
on bootup. See /sys/dev/slice/slice.4 for more info.
All code should act the same without these options enabled.

Mike Smith, Poul Henning Kamp, Soeren, and a few dozen others

This code does not support the following:
bad144 handling.
Persistance. (My head is still hurting from the last time we discussed this)
ATAPI flopies are not handled by the SLICE code yet.

When this code is running, all major numbers are arbitrary and COULD
be dynamically assigned. (this is not done, for POLA only)
Minor numbers for disk slices ARE arbitray and dynamically assigned.
1998-04-19 23:32:49 +00:00
tegge
64e2dfa0bb Disregard the values for polarity and trigger mode in the MP config table
for ISA interrupts where the IOAPIC interrupt pin number is the same as
the ISA interrupt number (i.e. partial backout of previous commit)
1998-04-19 23:19:20 +00:00
des
901c8a6cfa Backed out lseek changes. 1998-04-19 22:20:32 +00:00