Commit Graph

9320 Commits

Author SHA1 Message Date
markm
1a385f5cdc Fix conflicts. 1997-11-10 18:31:35 +00:00
bde
53af1df4e6 Fixed chip_offsets[] which I broke in rev.1.53. The offsets aren't
actually offsets, they are offsets scaled by dividing by 2^cy_align.
I use different values for cy_align since the -current values are
unnaturally scaled, so I need different offsets, and the wrong
offsets got committed.

Reported by:	nnd@itfs.nsk.su (N.Dudorov)
1997-11-10 15:46:33 +00:00
nate
cddcd93a80 - Convert c++ comment to c comment.
Noted by: 	Bruce
1997-11-10 14:38:08 +00:00
kato
a354c4cbb3 Sync with sys/i386/conf/majors.i386 revision 1.20. 1997-11-10 13:46:38 +00:00
msmith
c5875a8dbd Assign 84 to Andrew Gordon <arg@arg1.demon.co.uk> for the 'ttxt' Unitext
teletext decoder.
1997-11-10 03:50:29 +00:00
wosch
e736d68c30 Remove the comments hat just list the nested includes.
The lists don't provide significantly more information than
grep '\.include', and grep gives lists that are actually correct.
Submitted by: Bruce
1997-11-09 15:03:15 +00:00
msmith
67ba7220fd A better fix for the ddb command history buffer problem; use a static
buffer instead of trying to use malloc() in the input routine.
Submitted by:	john hood <cgull@smoke.marlboro.vt.us>
1997-11-09 06:30:29 +00:00
jkh
b820ab9845 MF22: MSG_EOR bug fix.
Submitted by:	wollman
1997-11-09 05:07:40 +00:00
julian
554abdcebf fix slight breakages from PHK's VFS work.
also remove irrelevant copyright, now that all that code has gone away.
1997-11-08 19:02:28 +00:00
peter
84ea1e1ecb Merge 971020 stuff.. Check 21142? SROM CRC. 1997-11-08 14:46:58 +00:00
tegge
cd60b5872c Use UPAGES when setting up private pages for SMP (which includes idle stack). 1997-11-07 19:58:34 +00:00
kato
81bbaff831 Sync with following files:
- sys/i386/i386/machdep.c revision 1.271
	- sys/i386/i386/trap.c revision 1.114
	- sys/i386/isa/if_ed.c revision 1.128
	- sys/i386/isa/if_fe.c revision 1.34
	- sys/i386/isa/syscons.c revision 1.238.
	- sys/i386/isa/wd.c revision 1.144
1997-11-07 12:54:01 +00:00
phk
ccc7e7fa9f Rename some local variables to avoid shadowing other local variables.
Found by: -Wshadow
1997-11-07 09:21:01 +00:00
phk
4d26888936 Remove a bunch of variables which were unused both in GENERIC and LINT.
Found by:	-Wunused
1997-11-07 08:53:44 +00:00
msmith
cfad384768 Don't try to do anything with the input history if MALLOC() for the buffer
failed.

This broke early debugging.
1997-11-07 02:34:50 +00:00
markm
45a9d49a7f Rats. Committed the wrong version.
Move the declarations to the top of the ioctl() function so this compiles.
1997-11-06 20:06:19 +00:00
phk
4c8218a5c7 Move the "retval" (3rd) parameter from all syscall functions and put
it in struct proc instead.

This fixes a boatload of compiler warning, and removes a lot of cruft
from the sources.

I have not removed the /*ARGSUSED*/, they will require some looking at.

libkvm, ps and other userland struct proc frobbing programs will need
recompiled.
1997-11-06 19:29:57 +00:00
kato
363a7ddf85 Sync with sys/i386/conf/Makefile.i386 revision 1.105. 1997-11-06 09:51:34 +00:00
dyson
bae55d2661 Fix the "missing page" problem. Also, improve the performance of page
allocation in common cases.
1997-11-06 08:35:50 +00:00
joerg
7fafb4ffea Make the Nakamichi CD-ROM changer detection detect more recent devices,
too.
1997-11-06 08:29:50 +00:00
markm
9b85573701 1) Add the IOCTL for Luigi's BT848 -> I2C bus driver.
2) Fix temporal decimation, disable it when
   doing CAP_SINGLEs, and in dual-field capture, don't
   capture fields for different frames

Submitted by: Luigi Rizzo & Randall Hopper
1997-11-06 07:04:08 +00:00
markm
f55cfbd1d8 Add the IOCTL for Luigi's BT848 -> I2C bus driver. 1997-11-06 07:00:45 +00:00
msmith
a70940419f Bump configvers to 300003 to account for the crd->card (and related)
namespace changes.
1997-11-06 03:11:40 +00:00
kato
a254837af9 Identify MediaGX CPU correctly. Old MeidaGX CPU and GXm CPU are
distinguished.  CPU-classes of MeidaGX CPU and GXm CPU are 486-class
and 586-class, respectively.

PR:		4936
1997-11-06 03:10:28 +00:00
sos
e0049830ed Oops, forgot to count non-changer drives..
Broken by: sos
Reported by: phk
1997-11-05 21:32:00 +00:00
joerg
0bc9255aaa Make IPDIVERT a supported option. Alas, in_var.h depends on it, i
hope i've found out all files that actually depend on this dependancy.
IMHO, it's not very good practice to change the size of internal
structs depending on kernel options.
1997-11-05 20:17:23 +00:00
kato
81b353e477 Fix rare 6x86 CPU whose DIR0 = 0x20 - 0x28 case. 1997-11-05 15:12:44 +00:00
julian
e0b506942b Return the entire if info, rather than just the index number. (at least try)
Interface index numbers are an abomination that should go away
(at least in that form)
1997-11-05 02:51:32 +00:00
ache
66620581f2 Do not print config details twice (first variant comes from isa)
Format config messages properly (with initial snd0: prefix)
1997-11-05 00:23:26 +00:00
steve
1106c3e010 Note that the Intel EtherExpress' driver is ie(4). 1997-11-04 21:11:14 +00:00
nate
741ef8dac5 - Update the email address in the copyrights. 1997-11-04 18:12:51 +00:00
nate
dc73737576 - Reset the pcic controller interrupt 'poll' timeout *after* we call the
interrupt routine.
1997-11-04 17:50:23 +00:00
nate
b865ee4190 - If the APM BIOS fails to suspend the system after running the
suspend hooks, run the resume hooks to re-configure the system back
  to where it was.
1997-11-04 17:37:52 +00:00
kato
675448121b Sync with sys/i386/isa/wd.c revision 1.142. 1997-11-04 12:58:48 +00:00
kato
80e26d12da Sync with sys/i386/conf/Makefile.i386 revision 1.104. 1997-11-04 12:58:20 +00:00
phk
abef5e0744 dk_altport is initialized in wdprobe(), but not in wdattach(), this
breaks wdreset(), wdunwedge() &c &c.

Should be examined in detail by:	dyson
1997-11-04 09:28:54 +00:00
kato
7fee134339 Use same address for USERCONFIG_BOOT on PC-98 as IBM-PC.
Submitted by:	H. Nokubi <h-nokubi@nmit.tmg.nec.co.jp>
Forgotten by:	kato
1997-11-04 03:19:25 +00:00
guido
9e1a11429b Test if kvm_kernel.db exists before moving it. Otherwise installing
a kernel, booting single user and reinstalling a kernel fails.
1997-11-03 21:48:31 +00:00
kato
c22960aa65 Sync with sys/i386/isa/sio.c revision 1.188. 1997-11-03 02:30:45 +00:00
kato
c08005ca1f Sync with sys/i386/i386/userconfig.c revision 1.96. 1997-11-03 02:29:44 +00:00
kato
fe4a71d319 Sync with sys/i386/isa/if_fe.c revision 1.33. 1997-11-03 02:28:39 +00:00
kato
b0b955ecbe Sync with sys/i386/isa/if_ed.c revision 1.127. 1997-11-03 02:27:36 +00:00
nate
f792549af6 - MF22: (I reversed these). Simplify code. 1997-11-02 21:26:14 +00:00
jkh
baf2cb04b3 Add ide_pci device. 1997-11-02 20:35:07 +00:00
gibbs
7b9f919ed2 Correct the definition of CIRCLEQ_EMPTY. It would give a false positive
if the queue contained only one element.

Submitted by:	Greg Ansley <gja@ansley.com>
1997-11-02 19:41:16 +00:00
dg
cd43239919 Sigh, kill setting of 0WS...it breaks more machines than it fixes. 1997-11-02 07:12:52 +00:00
tegge
388b273b9d Move declaration of M_MFSNODE from mfs_vnops.c to mfsnode.h. 1997-11-01 20:40:14 +00:00
tegge
755c4dea3d Bring back mfs_reclaim(), which is used to reclaim the master vnode in MFS. 1997-11-01 20:19:44 +00:00
nate
a9b0ad62d6 - Example config file for laptop/PCCARD support. 1997-11-01 18:54:10 +00:00
jseger
1f886000f4 Change comments about ijppp to iijppp.
PR:		conf/4905
Submitted by:	takas-su@is.aist-nara.ac.jp
1997-10-31 22:10:09 +00:00
markm
5f92dabd2c Bring our sound sources up to the level of Amancio's latest-and-greatest.
This corresponds to Voxware 3.5-alpha-<something> and Amancio's guspnp21.
There was a bit of a FUBAR during the commmit, so not all files are
mentioned in this commit's mail.

X-rant:	I have just started to _*HATE*_ CVS...
1997-10-31 17:25:35 +00:00
jmg
01dd9f96d6 This updates Luigi's sound code to the basic code in snd971023...
changes:
    o rip the old select from his distribution to prevent extra pollution
    o the code now uses audio dma, helps reduce clicks
    o improved card support, should work in full duplex on sb16 cards
    o add better voxware ioctl support pointed out by Joao Carlos Mendes
       Luis <jonny@coppe.ufrj.br>
    o remove an unused file that I included for more complete history
    o and MANY other changes

I have personally tested this code with a CS4237 based card and an AWE32
(non-PnP).  Both cards worked fine in 8bit and 16bit mode.
1997-10-31 12:24:28 +00:00
dg
21bec5640c Fixed bug in RTM_ADD where rmx_locks weren't being set on the new route,
preventing "route add default 1.2.3.4 -lock -mtu 1500" from working as
expected (which is, BTW, to disable Path MTU Discovery).
1997-10-31 08:53:13 +00:00
markm
be4808f6e2 Upgrade the sound sources to Amancio Hasty's latest-and-greatest.
This is based on Voxware 3.5, and corresponds to Amancio's `guspnp21'.

Bug reports to Amancio, please!
1997-10-31 06:30:22 +00:00
eivind
dbc432c0d0 Improve PAL support and fix mux selector values.
This make the Miro PCTV work for me, including audio, and should
hopefully fix the other audio problems some people have been having.

Reviewed by:	ahasty & Luigi Rizzo (freebsd-multimedia)
1997-10-30 18:20:26 +00:00
kato
44b39f89cb Securelevel and formatting fixes, and trapframe simplification.
Reviewed by:	sos
Submitted by:	bde
1997-10-30 10:53:30 +00:00
sos
226ae63eab First cut at supporting multi-CD CDROM drives (changers).
Very rudimentary, lots of error checks missing, but it works.
Dont do an ls on two different CD's though, it will eat your
changer mechanism for lunch :), this clearly needs some more
thought. Until then this will enable those with changers to
mount their multible CD's and doing "sensible" work....

Thanks to Andrew Gordon <arg@arg1.demon.co.uk> for donating a drive
(a NEC CDR-C251 4x4) that makes this possible to develop.
1997-10-29 22:11:00 +00:00
nate
bdd6ae07d8 - Make sure we include <sys/kernel.h> to pick up the definitions of DATA_SET()
Noticed by:	bde
1997-10-29 15:54:19 +00:00
kato
cfc3d1cfdf Implement linux_iopl and linux_nice. 1997-10-29 08:17:14 +00:00
kato
df76a9fc09 Sync with sys/i386/isa/if_ed.c revision 1.126. 1997-10-29 08:14:56 +00:00
kato
d50e1b9be0 Synchronize with sys/i386/i386/microtime.s revision 1.34. 1997-10-29 08:13:32 +00:00
julian
9482e3b53d didn't even know fddi had the atalk support.
fix it here too. (really needs more of the fixes from the ethernet)
1997-10-29 07:59:27 +00:00
jdp
addd7d2b5d The previous change added a use of the DATA_SET macro, but forgot
to define it by including <sys/kernel.h>.  That broke PC-CARD
support for this driver, producing the dreaded "device allocation
failed" message.  Surprisingly, the missing include caused only
two compiler warnings.  The compilation still "succeeded" anyway.
1997-10-29 00:51:50 +00:00
julian
827244dc7a Fix various problems with netatalk kernel support.
Some of these changes are a bit rough and will become
more polished later.  the changes to if_ethersubr should largely be moved
to within the appletalk code, but that will happen later.
A few of these were related to network-byteorder problems,
and more were related to loopback failures.
1997-10-29 00:30:52 +00:00
nate
f6deed1a05 - More style nits (sorry, I should have done this last time). 1997-10-28 20:58:53 +00:00
nate
44f2868788 - Style nit. 1997-10-28 20:50:58 +00:00
phk
349f4dfe03 Remove the long description from the in-kernel datastructure.
Put a magic field in there instead, to help catch uninitialized
malloc types.
1997-10-28 19:01:02 +00:00
guido
1e49b12039 Fix bugs from my previous commit
Submitted by:	Bruce Evans
1997-10-28 18:55:21 +00:00
nate
2e553bc250 - Disable cards when doing a suspend by emulating that they have been
removed.  Add a new state 'suspend' so we 'fake' insertion events at
  resume time for the cards that have been suspended.

[
The code still works if you remove the card during suspend, switch the
card during suspend, or combinations of both.
]

Reviewed by:	frf@xocolatl.com
1997-10-28 17:51:25 +00:00
bde
fb826377ff Removed unused #includes. 1997-10-28 15:59:26 +00:00
kato
547810c3e7 Synchronize with sys/i386/isa/npx.c and clock.c revisions 1.53 and
1.103, respectively.
1997-10-28 14:30:47 +00:00
kato
0be80e84d3 Synchronize with sys/i386/conf/files.i386 revision 1.178. 1997-10-28 14:29:23 +00:00
bde
974f2bea15 Don't #include <nfs/nfs.h> in <nfs/nfs_node.h> if KERNEL is defined.
Fixed everything that depended on the nested include.
1997-10-28 14:06:25 +00:00
bde
a2efd30a4b This depends on option TCP_DEBUG for some reason, so include
opt_tcp_debug.h so that the option is visible again.

Restored a used #include.
1997-10-28 12:24:26 +00:00
bde
561cc79f50 Don't include <machine/cputypes.h> or declare cputype/class interfaces
in <machine/cpu.h>.  Moved the declarations to <machine/cputypes.h>.
Fixed style bugs in the moved code.  Fixed everything that depended on
the nested include.  Don't include <machine/cpu.h> (in the changed files)
unless something in it is used directly.
1997-10-28 11:43:57 +00:00
kato
c2c827e04f Implement linux_semop, linux_semget and linux_semctl.
PR:		4355
1997-10-28 10:50:02 +00:00
bde
63cd8d1f1b Fixed style bugs in open() fix. 1997-10-28 10:29:55 +00:00
kato
35580c3b16 Synchronize with sys/i386/conf/GENERIC revision 1.100. 1997-10-28 09:09:05 +00:00
joerg
606d40fa35 Use the new "mandatory" keyword for the npx driver. 1997-10-28 07:28:34 +00:00
joerg
9a00c2c7cc Removed another comment about not-so-mandatory devices i've missed in
the previous commit.  It's perfectly legal to build a kernel without
any video device driver (and even without any console driver at all if
desired).
1997-10-28 07:27:48 +00:00
joerg
d7060af272 Remove the stale `log' non-pseudodevice.
Found by:	the new config(8) ;-)
1997-10-28 07:24:35 +00:00
jmz
67b46d7b0f Use a MODE SELECT command to reset the block size, instead of calling the
prepare_track() function, which caused fixation problems with some drives.
1997-10-27 21:09:27 +00:00
guido
16baeb2dba When dosourcerouting is set do not sourceoute.... 1997-10-27 21:07:26 +00:00
bde
af87f94a9c Moved declaration of etext from <machine/md_var.h> to <machine/cpu.h>
and fixed everything that dependended on it being declared in the old
place.  It is used in "machine-independent" code in subr_prof.c.

Moved declaration of btext from subr_prof.c to <machine/cpu.h>.  It
is machine-dependent.
1997-10-27 17:23:18 +00:00
bde
059c792df9 Oops, <machine/psl.h> is used unconditionally in -current. 1997-10-27 17:19:20 +00:00
bde
cae681d984 Cleaned up #includes.
Ifdefed conditionally used includes.

Finished changing indentation of per-statement comments to 40.
1997-10-27 16:35:34 +00:00
bde
2fa5d41745 KNFize rev.1.31. 1997-10-27 15:39:01 +00:00
bde
ebc42ddbe3 Use unique sleep message strings. 1997-10-27 15:33:04 +00:00
bde
bd7b557dd6 Use 127 instead of CHAR_MAX for the limit on the sequence count. The
limit doesn't have anything to do with characters.  The count mainly
needs to fit in the VOP_READ() ioflag after being left shifted by 16.

Moved vn_lock() before vn_closefile().  vn_lock() was mismerged from
Lite2.

Removed some gratuitous braces.
1997-10-27 15:26:23 +00:00
bde
4cd9d808cf Use bread() instead of cluster_read() for reading the last block
in a file.  There was a (harmless, I think) off-by-1 error.  This
was fixed in ufs long ago (rev.1.21 of ufs_readwrite.c) but not
in cd9660.

cd9660_read() has stagnated in many other ways.  It is closer to
the Net/2 ufs_read() (which is was cloned from) than ufs_read()
itself is.
1997-10-27 14:55:49 +00:00
bde
e38eb2dd99 Removed unused #includes. The need for most of them went away with
recent changes (docluster* and vfs improvements).
1997-10-27 13:33:47 +00:00
bde
3aa3852416 Forward declare precisely the structs that are actually used in this header. 1997-10-27 12:50:57 +00:00
kato
ddebc6cded Synchronize with sys/i386/isa/sio.c revision 1.187. 1997-10-27 11:00:31 +00:00
kato
68f6e3a1f5 Synchronize with sys/i386/isa/if_fe.c revision 1.32. 1997-10-27 10:59:48 +00:00
kato
6c76bff289 Synchronize with sys/i386/isa/if_ed.c revision 1.125. 1997-10-27 10:59:03 +00:00
kato
3533b38d39 Synchronize with sys/i386/isa/syscons.c revision 1.236. 1997-10-27 10:58:30 +00:00
kato
db7b02e8dc Synchronize with sys/i386/conf/GENERIC and majors.i386 revisions 1.99
and 1.19, respectively.
1997-10-27 10:57:58 +00:00
joerg
31e25c2156 Move the EP_ID_PORT out to 0x110, so it doesn't conflict with other port
usage at 0x100.  Quoted Justin's quotation from the manual as well, to
explain the technical background.

PR:		kern/4559
Submitted by:	Stephen J. Roznowski <sjr@home.net>
1997-10-27 06:15:10 +00:00
jkh
abd3e4e891 Bump MAXDSIZ to 512MB so that soft limits have a chance to actually
regulate this.
Reviewed by:	dyson
1997-10-27 00:38:46 +00:00
dyson
298618c900 Check to see if the pv_limits are initialized before checking. 1997-10-27 00:34:15 +00:00
fenner
44ca631cf4 Fix a comment about multicast; since the Etherlink III has no
multicast filter the driver will never learn how to program it.
1997-10-27 00:02:33 +00:00
nate
fa55951ed5 - Instead of relying on a functional call to register PCARD-capable drivers,
use a Linker Set.  Note, if a driver is loaded as an LKM  if will have
  to use the function call, but since none of the existing drivers
  are loadable, this made things cleaner and boot messages nicer.

Obtained from:	PAO-970616
1997-10-26 21:08:42 +00:00
phk
956a3f58e3 I guess nobody uses ext2fs in current ?
vop_lookup is back now, don't know whan I lost it.
1997-10-26 21:05:40 +00:00
nate
84c3cb0136 - Patch the 'skeleton' example driver to be more consistant with the new
state of the world.
1997-10-26 21:01:44 +00:00
phk
e3cdaf12b2 VFS interior redecoration.
Rename vn_default_error to vop_defaultop all over the place.
Move vn_bwrite from vfs_bio.c to vfs_default.c and call it vop_stdbwrite.
Use vop_null instead of nullop.
Move vop_nopoll from vfs_subr.c to vfs_default.c
Move vop_sharedlock from vfs_subr.c to vfs_default.c
Move vop_nolock from vfs_subr.c to vfs_default.c
Move vop_nounlock from vfs_subr.c to vfs_default.c
Move vop_noislocked from vfs_subr.c to vfs_default.c
Use vop_ebadf instead of *_ebadf.
Add vop_defaultop for getpages on master vnode in MFS.
1997-10-26 20:55:39 +00:00
phk
d9574c43ed Remade syscalls.master derived files. 1997-10-26 20:28:54 +00:00
phk
66ca2aae2b Add "NOIMPL" for syscalls we know what is, but don't implement as "STD".
Use this for getfh & nfssvc.
1997-10-26 20:27:51 +00:00
phk
07d68f3e52 Simplify the lease_check stuff. 1997-10-26 20:26:33 +00:00
phk
190f3b183f Always initialize the syscall vectors for our "private" syscalls (not
just in the LKM case).
Plug nqnfs_vop_lease_check directly into the default_vnodeop_p table.
1997-10-26 20:13:52 +00:00
dyson
8be1e875ff Change the initial amount of memory allocated for pv_entries to be proportional
to the amount of system memory.  Also, clean-up some of the new pv_entry
mgmt code.
1997-10-26 12:33:39 +00:00
yokota
4be61c0304 - Slightly change the way the border color register is updated so that
flicker won't occur when set_border() is called.

- Properly restore the border color when switching virtual consoles.

Pointed out by: tony@dell.com
OKed by: sos
1997-10-26 07:36:13 +00:00
yokota
72e6a76747 - The daemon might go off the screen and crashed the system if the
screen size was changed while the screen saver was inactive. Adjust
the positions of the daemon and the text and clip them accordingly
each time.

- Don't call set_border() too often. Some video chip may produce
flicker.

Pointed out by tony@dell.com

- Don't fill the entire screen with blank char every time the saver is
called.  Blank only the part of the screen where the daemon and the
text was previously printed.
1997-10-26 07:35:18 +00:00
nate
0689fa1ceb - 'Beep' support now happens in it's own separate file, so you can mess
around with different noises for the different events and not have it
  affect other files.

Inspired by:	PAO
1997-10-26 06:06:54 +00:00
nate
2f55d3018b - Functional changes to PCCARD support.
* Kill individual drivers 'suspend' routines, since there's no simple/safe
   way to suspend/resume a card w/out going through the complete probe
   at initialization time.
 * Default to using the apm_pccard_resume sysctl code, which basically
   pretends the card was removed, and then re-inserted.  Suspend/resume
   is now 'emulated' with a fake insert/removal.  (Hence we no longer
   need the driver-specific suspend routines.)
1997-10-26 04:54:16 +00:00
nate
c68183d0b8 - Do a bunch of gratuitous changes intended to make the code easier to
follow.
 * Rename/reorder all of the pccard structures, change many of the member
   names to be descriptive, and follow more closely other 'bus' drivers
   naming schemes.
 * Rename a bunch of parameter and local variable names to be more
   consistant in the code.
 * Renamed the PCCARD 'crd' device to be the 'card' device
 * KNF and make the code consistant where it was obvious.
 * ifdef'd out some unused code
1997-10-26 04:36:24 +00:00
nate
bc21da1f3f - Call 'callout_handle_init' on the two timeout channels after they are
created in the new slot controller structure.
1997-10-26 02:55:31 +00:00
nate
35f6cb0d89 - KNF the PCI stuff, no functional changes. 1997-10-25 21:02:44 +00:00
phk
096ac51f40 Recognize even more of the Znyx 314 cards. 1997-10-25 14:32:15 +00:00
dyson
43e9a7b262 Somehow an error crept in during the previous commit. 1997-10-25 04:49:01 +00:00
dyson
56bd787cbb Support garbage collecting the pmap pv entries. The management doesn't
happen until the system would have nearly failed anyway, so no signficant
overhead is added.  This helps large systems with lots of processes.
1997-10-25 02:41:56 +00:00
dyson
bcae676793 Decrease the initial allocation for the zone allocations. 1997-10-24 23:41:04 +00:00
nate
3eaafbfd4a - Recognize the Cirrus Logic PD6729/6730 PC-Card Controller behind the
PCI bus.

[ Re-organized the code to be easier to extend, based on Michael's patch ]

Submitted by:	Michael Reifenberger <root@totum.plaut.de>
1997-10-24 15:39:00 +00:00
nate
58e051f462 - Use the definitions found in <i386/isa/isa.h> instead of rolling our
own definition of ISA_HOLE_START.  We shouldn't need to include
  bus/processor specific code in here, but it is required.  At least by
  doing it this way it becomes more obvious where the bogusness is.

Obtained from:	email with bde
1997-10-24 15:27:16 +00:00
phk
b2cdb3a2f1 Remove the stuff we do not use from global scope. Export them again as
needed.
1997-10-24 14:27:23 +00:00
phk
f593ffbdd7 Statizice. 1997-10-24 14:24:55 +00:00
jmg
094d62656c make a couple functions static...
also change module_register_static to module_register_init as this
function initalizes the module for both dynamic and static modules...
1997-10-24 05:29:07 +00:00
nate
ec74e6f8df - defined constant ISA_HOLE_START (would be nice to include machine/pmap.h,
but it has too much baggage).
- create a new routine 'unregister_device_interrupt', which is now used
  instead of having two routines with the same code snippet.
- Minor cleanups and commenting.

[ No functional changes, just moving things around ]
1997-10-23 22:54:47 +00:00
nate
26825b2fa5 - Move the untimeout code call out of the check for pwr_off_pending. It
shouldn't make any difference, but did on a couple of test systems.
1997-10-23 19:00:16 +00:00
gibbs
03cdd17845 Fix a potentially disasterous '==' instead of '=' bug.
Submitted by:	John-Mark Gurney <gurney_j@resnet.uoregon.edu>
1997-10-23 11:32:06 +00:00
kato
e4e4abd8bf Disallow non-root mount. If you want to allow non-root mount, change
vfs.usermount into 1 with sysctl.
1997-10-23 09:29:09 +00:00
kato
04b14b1941 Synchronize with sys/i386/isa/syscons.{c,h} revisions 1.235 and 1.35,
respectively.
1997-10-23 09:26:30 +00:00
kato
9a2112298f Synchronize with sys/i386/conf/Makefile.i386 revision 1.103. 1997-10-23 09:20:16 +00:00
nate
a952c7a5aa - Fix braino in last commit. (Slow networks should be outlawed!) 1997-10-23 04:53:32 +00:00
nate
5ec2824fc0 - Back out the last. APM_BROKEN_STATCLOCK doesn't exist in -current. 1997-10-23 04:18:49 +00:00
yokota
b13f7d1937 Reject unreasonable values passed to CONS_HISTORY ioctl. It did not
check the value and caused kernel panic when a large value was given.

- Move the configuration option SC_HISTORY_SIZE from syscons.h to
syscons.c.
- Define the maximum total number of history lines of all consoles.
It is SC_HISTORY_SIZE*MAXCONS or 1000*MAXCONS; whichever is larger.
CONS_HISTORY will allow the user to set the history size up to
SC_HISTORY_SIZE unconditionally (or the current height of the console
if it is larger than SC_HISTORY_SIZE). If the user requests a larger
buffer, it will be granted only if the total number of all allocated
history lines and the requested number of lines won't exceed the maximum.
- Don't free the previous history buffer and leave the history buffer
pointer holding a invalid pointer. Set the pointer to NULL first, then
free the buffer.

PR: bin/4592
1997-10-23 03:23:50 +00:00
nate
fdcf922d4f - When doing suspend/resume, only try to suspend those drivers on active
slots.  Otherwise, we try to suspend drivers who have been disabled
  already.

[
The only reason the drivers are still on the list is because of race
conditions where the card is removed while the driver is in use.  We
leave the drivers on the slot list (leaving all of their structures in
place in case a process is using it) but set it's state to empty so that
further uses by the pccard code know not to expect active cards.
]
1997-10-23 02:30:39 +00:00
nate
74b704148b Back our V1.36, due to reports of badness. (IRQ's are again allocated
from the 'lower' interrupts to the 'higher' interrupts.)  We need to
find a way to set the interrupt for the controller in the config file.

Determined by:	handy@sag.space.lockheed.com
1997-10-23 02:25:14 +00:00
dg
94286bf509 Rewrote fxp_start() for better clarity and efficiency. 1997-10-23 01:45:15 +00:00
nate
251c8be0fe - Simplify code by removing a variable which was initialized once, never
modified, and was expected to have the initialized value.
1997-10-23 00:51:29 +00:00
nate
bdf762c6f9 - If APM_BROKEN_STATCLOCK is defined, make sure the statcloock is
disabled, don't rely on the flags to set it.
1997-10-22 23:04:07 +00:00
joerg
b631d52e4d Reject attempts to call open() with an illegal combination of O_RDONLY,
O_WRONLY, O_RDWR.
1997-10-22 07:28:51 +00:00
peter
c355e96630 Put in an initial %VERSREQ field. This will cause existing config(8)'s
to give a non-fatal warning about unknown directives, so there is no
hurry to rebuild config(8) yet, apart from shutting up the warning.
1997-10-22 00:48:36 +00:00
roberto
cb0b2ed81c Fix the same leak as in nullfs. Now the lowervp is properly marked inactive.
Reviewed by:	phk
1997-10-21 21:08:17 +00:00
roberto
83a98c9cc8 Fix the file leak bug. The lower layer wasn't informed the vnode was inactive
and kept a reference, preventing the blocks to be reclaimed.

Changed the comment in null_inactive to reflect the current situation.

Reviewed by:	phk
1997-10-21 21:01:34 +00:00
nate
cccd48166d - PCCARD support to the much maligned SCSI driver. This gives up support
for a couple of external CD's (notably the Sony PRD-650).

Note: In order to get my CD recognized, I had to configure the CD under
      Win95, but it seems to work now even if I turn it off.

Submitted by:	PAO [minor mods by me]
1997-10-21 17:57:31 +00:00
phk
14ea303119 Add const to a couple of casts to silence some of the warnings Bruce
has let loose on us.
1997-10-21 13:28:36 +00:00
bde
c460dbf96b Oops, comment lines can't be indented either. 1997-10-21 10:39:27 +00:00
bde
da0f70fc69 Oops, comment lines can't be continued. 1997-10-21 10:36:07 +00:00
kato
c48e941245 Merge from RELENG_2_2. Bandaid for 'lockmgr panic' on the VN device. 1997-10-21 09:51:47 +00:00
kato
adfbefbc66 Synchronize with sys/i386/isa/fd.c revision 1.105. 1997-10-21 09:48:38 +00:00