Module Name: src
Committed By: macallan
Date: Wed Jun 28 08:11:52 UTC 2023
Modified Files:
src/sys/dev/sbus: mgx.c
Log Message:
fix tpyo - now the glyph cache can actually work...
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/sbus/mgx.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/sbus/mgx.c
diff -u src/sys/dev/sbus/mgx.c:1.20 src/sys/dev/sbus/mgx.c:1.21
--- src/sys/dev/sbus/mgx.c:1.20 Thu Nov 11 19:37:30 2021
+++ src/sys/dev/sbus/mgx.c Wed Jun 28 08:11:52 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: mgx.c,v 1.20 2021/11/11 19:37:30 macallan Exp $ */
+/* $NetBSD: mgx.c,v 1.21 2023/06/28 08:11:52 macallan Exp $ */
/*-
* Copyright (c) 2014 Michael Lorenz
@@ -29,7 +29,7 @@
/* a console driver for the SSB 4096V-MGX graphics card */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mgx.c,v 1.20 2021/11/11 19:37:30 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mgx.c,v 1.21 2023/06/28 08:11:52 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -342,7 +342,7 @@ mgx_attach(device_t parent, device_t sel
* leave some room between visible screen and glyph cache for upload
* buffers used by putchar_mono()
*/
- bsize = (32 * 1024 * sc->sc_stride - 1) / sc->sc_stride;
+ bsize = (32 * 1024 + sc->sc_stride - 1) / sc->sc_stride;
glyphcache_init(&sc->sc_gc,
sc->sc_height + bsize,
(0x400000 / sc->sc_stride) - (sc->sc_height + bsize),