Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Make sure rasops_info descriptor is zeroed out befo...



details:   https://anonhg.NetBSD.org/src/rev/98e83ac82010
branches:  trunk
changeset: 472978:98e83ac82010
user:      ad <ad%NetBSD.org@localhost>
date:      Sat May 15 12:52:22 1999 +0000

description:
Make sure rasops_info descriptor is zeroed out before initializing.

diffstat:

 sys/arch/sparc/dev/fb.c   |  3 ++-
 sys/arch/sparc64/dev/fb.c |  5 ++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 3da5132e3fcb -r 98e83ac82010 sys/arch/sparc/dev/fb.c
--- a/sys/arch/sparc/dev/fb.c   Sat May 15 03:27:50 1999 +0000
+++ b/sys/arch/sparc/dev/fb.c   Sat May 15 12:52:22 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fb.c,v 1.28 1999/04/27 17:37:18 thorpej Exp $ */
+/*     $NetBSD: fb.c,v 1.29 1999/05/15 12:52:22 ad Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -374,6 +374,7 @@
        int maxrow, maxcol;
 
        /* Set up what rasops needs to know about */
+       bzero(&ri, sizeof *ri);
        ri->ri_stride = fb->fb_linebytes;
        ri->ri_bits = (caddr_t)fb->fb_pixels;
        ri->ri_depth = fb->fb_type.fb_depth;
diff -r 3da5132e3fcb -r 98e83ac82010 sys/arch/sparc64/dev/fb.c
--- a/sys/arch/sparc64/dev/fb.c Sat May 15 03:27:50 1999 +0000
+++ b/sys/arch/sparc64/dev/fb.c Sat May 15 12:52:22 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fb.c,v 1.6 1999/04/26 04:25:39 ad Exp $ */
+/*     $NetBSD: fb.c,v 1.7 1999/05/15 12:52:22 ad Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -241,8 +241,6 @@
        (void)kbd_docmd(on?KBD_CMD_BELL:KBD_CMD_NOBELL, 0);
 }
 
-#include <sparc/dev/rcons_font.h>
-
 void
 fbrcons_init(fb)
        struct fbdevice *fb;
@@ -252,6 +250,7 @@
        int maxrow, maxcol;
 
        /* Set up what rasops needs to know about */
+       bzero(&ri, sizeof *ri);
        ri->ri_stride = fb->fb_linebytes;
        ri->ri_bits = (caddr_t)fb->fb_pixels;
        ri->ri_depth = fb->fb_type.fb_depth;



Home | Main Index | Thread Index | Old Index