Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/luna68k/dev Kludge to avoid a panic in badaddr() wh...



details:   https://anonhg.NetBSD.org/src/rev/591fa3b563b1
branches:  trunk
changeset: 480266:591fa3b563b1
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Sat Jan 08 04:40:25 2000 +0000

description:
Kludge to avoid a panic in badaddr() when no framebuffer is installed.

diffstat:

 sys/arch/luna68k/dev/lunafb.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r ae004ed71ad8 -r 591fa3b563b1 sys/arch/luna68k/dev/lunafb.c
--- a/sys/arch/luna68k/dev/lunafb.c     Sat Jan 08 03:49:37 2000 +0000
+++ b/sys/arch/luna68k/dev/lunafb.c     Sat Jan 08 04:40:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lunafb.c,v 1.2 2000/01/06 00:19:10 nisimura Exp $ */
+/* $NetBSD: lunafb.c,v 1.3 2000/01/08 04:40:25 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.2 2000/01/06 00:19:10 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.3 2000/01/08 04:40:25 nisimura Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -174,8 +174,13 @@
 
        if (strcmp(ma->ma_name, fb_cd.cd_name))
                return (0);
+#if 0  /* badaddr() bombs if no framebuffer is installed */
        if (badaddr((caddr_t)ma->ma_addr, 4))
                return (0);
+#else
+       if (hwplanemask == 0)
+               return (0);
+#endif
        return (1);
 }
 



Home | Main Index | Thread Index | Old Index