From 170f96bb1a4eca160e8b69cc802463bafac394b7 Mon Sep 17 00:00:00 2001 From: Kazutaka YOKOTA Date: Mon, 15 Mar 1999 00:20:56 +0000 Subject: [PATCH] This is a temporary workaround for kernel panic occurring when switching video modes. People typically see the panic when the screen saver has been running and is being stopped. WARNING: this is not a real fix. Something really funny must be happening in the page table entries for the physical memory 0x0-0xa0000, which is mapped to the beginning of the kernel region. --- sys/i386/isa/vga_isa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/i386/isa/vga_isa.c b/sys/i386/isa/vga_isa.c index 4fca03f2231..38d46e5ed8c 100644 --- a/sys/i386/isa/vga_isa.c +++ b/sys/i386/isa/vga_isa.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: vga_isa.c,v 1.2 1999/01/23 10:55:16 yokota Exp $ + * $Id: vga_isa.c,v 1.4 1999/02/05 12:58:40 yokota Exp $ */ #include "vga.h" @@ -1973,6 +1973,7 @@ vga_load_state(video_adapter_t *adp, void *p) inb(crtc_addr + 6); /* reset flip-flop */ outb(ATC, 0x20); /* enable palette */ +#if notyet /* a temporary workaround for kernel panic, XXX */ #ifndef VGA_NO_BIOS if (adp->va_unit == V_ADP_PRIMARY) { writeb(BIOS_PADDRTOVADDR(0x44a), buf[0]); /* COLS */ @@ -1984,6 +1985,7 @@ vga_load_state(video_adapter_t *adp, void *p) #endif } #endif /* VGA_NO_BIOS */ +#endif /* notyet */ splx(s); return 0;