1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/i386
Kazutaka YOKOTA 870521063a Screen saver related fixes.
1. Add new interface, add_scrn_saver()/remove_scrn_saver(), to declare
loading/unloading of a screen saver.  The screen saver calls these
functions to notify syscons of loading/unloading events.

It was possible to load multiple savers each of which will try to
remember the previous saver in a local variable (`old_saver'). The
scheme breaks easily if the user load two savers and unload them in a
wrong order; if the first saver is unloaded first, `old_saver' in the
second saver points to nowhere.

Now only one screen saver is allowed in memory at a time.

Soeren will be looking into this issue again later.  syscons is
becoming too heavy.  It's time to cut things down, rather than adding
more...

2. Make scrn_timer() to be the primary caller of the screen saver
(*current_saver)(). scintr(), scioctl() and ansi_put() update
`scrn_time_stamp' to indicate that they want to stop the screen saver.

There are three exceptions, however.

One is remove_scrn_saver() which need to stop the current screen saver
if it is running. To guard against scrn_timer() calling the saver during
this operation, `current_saver' is set to `none_saver' early.

The others are sccngetc() and sccncheckc(); they will unblank the
screen too.  When the kernel enters DDB (via the hot key or a
break point), the screen saver will be stopped by sccngetc().
However, we have a reentrancy problem here. If the system has been in
the middle of the screen saver...

(The screen saver reentrancy problem has always been with sccnputc()
and sccngetc() in the -current source. So, the new code is doing no
worse, I reckon.)

3. Use `mono_time' rather than `time'.

4. Make set_border() work for EGA and CGA in addition to VGA. Do
nothing for MDA.

Changes to the LKM screen saver modules will follow shortly.  YOU NEED
TO RECOMPILE BOTH SCREEN SAVERS AND KERNEL AS OF THESE CHANGES.

Reviewed by: sos and bde
1997-07-15 14:43:27 +00:00
..
apm Fix crash when halting where APM was configured but not enabled 1997-06-19 00:25:03 +00:00
bios Fix crash when halting where APM was configured but not enabled 1997-06-19 00:25:03 +00:00
boot Saved a few bytes by omitting frame pointers, using byte-sized 1997-07-13 15:24:15 +00:00
conf Add SYSVSHM by default. Nobody seems to have objected too strongly 1997-07-15 04:04:45 +00:00
eisa Don't cast function pointers to (void *). This will cause warnings. 1997-07-01 00:45:45 +00:00
i386 Oops, added popfl after trynexgen label. 1997-07-15 11:07:32 +00:00
ibcs2 Do The Right Thing when an iBCS2 program does getgroups(0, whatever) -- we 1997-06-25 01:01:21 +00:00
include Removed a stale "FIXME:". 1997-07-15 04:56:18 +00:00
isa Screen saver related fixes. 1997-07-15 14:43:27 +00:00
linux Make this thing actually compile. 1997-06-02 10:43:41 +00:00
pci Yet another fix for configuration mechanism 1 register accesses: 1997-05-26 21:52:41 +00:00
scsi Modify my copyright notice to allow the sequencer to be used with GPLed 1997-06-27 19:39:34 +00:00
Makefile Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00