John Dyson [Sun, 26 Oct 1997 12:33:39 +0000 (12:33 +0000)]
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.
Kazutaka YOKOTA [Sun, 26 Oct 1997 07:35:18 +0000 (07:35 +0000)]
- 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.
Nate Williams [Sun, 26 Oct 1997 06:06:54 +0000 (06:06 +0000)]
- '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.
Nate Williams [Sun, 26 Oct 1997 04:54:16 +0000 (04:54 +0000)]
- 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.)
Nate Williams [Sun, 26 Oct 1997 04:36:24 +0000 (04:36 +0000)]
- 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
Brian Somers [Sun, 26 Oct 1997 01:04:02 +0000 (01:04 +0000)]
Cosmetic (no functional changes):
o Add missing $Id$s
o Move extern decls from .c -> .h files
o Staticize
o Remove #includes from .h files
o style(9)ify includes
o bcopy -> memcpy
bzero -> memset
bcmp -> memcmp
index -> strchr
rindex -> strrchr
o Move timeout.h -> timer.h (making it consistent w/ timer.c)
o Add -Wmissing-prototypes
John Dyson [Sat, 25 Oct 1997 02:41:56 +0000 (02:41 +0000)]
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.
Mark Murray [Fri, 24 Oct 1997 16:35:34 +0000 (16:35 +0000)]
(Null commit - the previous commit blew up in my face).
Link this against -lcrypt. In the case where a user does not have
a ticket available on the server, this may cause chunks to be blown
when the local kinit does not find crypt(3).
Mark Murray [Fri, 24 Oct 1997 16:27:46 +0000 (16:27 +0000)]
Link this against -lcrypt. In the case where the user has no key available
on the keyserver, the local kinit will blow chunks when it tries a
crypt(3) and finds it unavailable.
Nate Williams [Fri, 24 Oct 1997 15:27:16 +0000 (15:27 +0000)]
- 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.
Pkg_add refused to process package whose packing list contains @exec/@unexec
before any file names. This change makes pkg_add to process those
packages if @exec/@unexec commands don't contain any %[fFB]. Also
enable @exec/@unexec that have %D if the installation prefix is known to
pkg_add.
Reviewed by: jkh
Nate Williams [Thu, 23 Oct 1997 22:54:47 +0000 (22:54 +0000)]
- 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 ]
Kazutaka YOKOTA [Thu, 23 Oct 1997 03:23:50 +0000 (03:23 +0000)]
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.
Nate Williams [Thu, 23 Oct 1997 02:30:39 +0000 (02:30 +0000)]
- 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.
]
Nate Williams [Thu, 23 Oct 1997 02:25:14 +0000 (02:25 +0000)]
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.
Changes in spirit of OpenGroup Singe Unix specs:
1) Limit max allowed argument to 1000000
2) Change return type from void to int to indicate premature termination
(by signal)
Peter Wemm [Wed, 22 Oct 1997 00:48:36 +0000 (00:48 +0000)]
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.
Peter Wemm [Wed, 22 Oct 1997 00:44:08 +0000 (00:44 +0000)]
For safety's sake, explicitly depend all objects on the configvers.h header
to make sure that it's all recompiled even if there is no 'make depend'.
This is overkill, but should be one less thing that someone can do wrong.
Peter Wemm [Wed, 22 Oct 1997 00:38:48 +0000 (00:38 +0000)]
Recognize a %VERSREQ=nnnnn string in the system Makefile. Both config(8)
and the kernel will have a 'config interface version number'. If an
incompatable change is made to the kernel that requires a rebuild of
config(8) (such as the cam devtab stuff), then the version number would be
bumped in both places. If a user neglects to rebuild config, then they
will get a nagging (but non-fatal) warning that they need to rebuild
config.
John-Mark Gurney [Tue, 21 Oct 1997 09:59:26 +0000 (09:59 +0000)]
a few code style changes:
o start function names in column 1
o sort order of flags in getopt and switch
o don't try to reference progname
o unspam some changes introduced by a 2.2.1-R build box instead of a
-current build box
doc changes:
o document when these commands first appeared
o put email address in angle brakets
o minor mdoc clean up
Mike Smith [Tue, 21 Oct 1997 07:40:22 +0000 (07:40 +0000)]
Reference the DMI table inside the SMBIOS table correctly, not using a variable
that won't be initialised until a later test.
Submitted by: bde via -Wunused
Bruce Evans [Tue, 21 Oct 1997 07:26:50 +0000 (07:26 +0000)]
Don't install mount_msdos setuid root. Lite2's mount(2) handles
permissions centrally and a setuid root mount utility just breaks
its security. There was no new breakage in practice because
mfdosfs_mount() still checks the ruid.
Bruce Evans [Tue, 21 Oct 1997 06:53:24 +0000 (06:53 +0000)]
Added -Wuninitialized to CWARNFLAGS. Warnings about uninitialialized
variables were lost when we removed -W, and 23 new ones including at
least one serious one have crept in for LINT.
Restored -Winline to CFLAGS. This gives only 3 old warnings and 1 new
for LINT.