Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/arch/vax/vsa Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/78f665d9df84
branches:  netbsd-9
changeset: 373387:78f665d9df84
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Feb 06 16:51:00 2023 +0000

description:
Pull up following revision(s) (requested by tsutsui in ticket #1585):

        sys/arch/vax/vsa/smg.c: revision 1.62

Make sure to call wsfont_init(9) as other framebuffer drivers.

Otherwise wsfont_find(9) always fails and wsdisplay(4) is not attached.

diffstat:

 sys/arch/vax/vsa/smg.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 3368038a0143 -r 78f665d9df84 sys/arch/vax/vsa/smg.c
--- a/sys/arch/vax/vsa/smg.c    Sat Feb 04 16:21:31 2023 +0000
+++ b/sys/arch/vax/vsa/smg.c    Mon Feb 06 16:51:00 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smg.c,v 1.58 2019/03/14 23:49:38 thorpej Exp $ */
+/*     $NetBSD: smg.c,v 1.58.4.1 2023/02/06 16:51:00 martin Exp $ */
 /*
  * Copyright (c) 1998 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smg.c,v 1.58 2019/03/14 23:49:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smg.c,v 1.58.4.1 2023/02/06 16:51:00 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -241,6 +241,7 @@
        callout_reset(&smg_cursor_ch, hz / 2, smg_crsr_blink, NULL);
        curcmd = CUR_CMD_HSHI;
        WRITECUR(CUR_CMD, curcmd);
+       wsfont_init();
        if ((fcookie = wsfont_find(NULL, 8, 15, 0, WSDISPLAY_FONTORDER_R2L,
            WSDISPLAY_FONTORDER_L2R, WSFONT_FIND_BITMAP)) < 0) {
                aprint_error_dev(self, "could not find 8x15 font\n");
@@ -591,6 +592,7 @@
        curscr = &smg_conscreen;
        wsdisplay_cnattach(&smg_stdscreen, &smg_conscreen, 0, 0, 0);
        cn_tab->cn_pri = CN_INTERNAL;
+       wsfont_init();
        if ((fcookie = wsfont_find(NULL, 8, 15, 0, WSDISPLAY_FONTORDER_R2L,
            WSDISPLAY_FONTORDER_L2R, WSFONT_FIND_BITMAP)) < 0)
        {



Home | Main Index | Thread Index | Old Index