summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/dev/fb.c')
-rw-r--r--sys/arch/sparc64/dev/fb.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/fb.c b/sys/arch/sparc64/dev/fb.c
index b0fdacf7079..8c09b2d4fc6 100644
--- a/sys/arch/sparc64/dev/fb.c
+++ b/sys/arch/sparc64/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.3 2003/06/28 14:26:17 miod Exp $ */
+/* $OpenBSD: fb.c,v 1.4 2003/10/05 18:34:43 miod Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -179,9 +179,15 @@ fbwscons_console_init(struct sunfb *sf, struct wsscreen_descr *wsc, int row,
/* assume last row */
sf->sf_ro.ri_crow = sf->sf_ro.ri_rows - 1;
} else {
+ /*
+ * If we force the display row, this is because the screen
+ * has been cleared or the font has been changed.
+ * In this case, choose not to keep pointers to the PROM
+ * cursor position, as the values are likely to be inaccurate
+ * upon shutdown...
+ */
+ sf->sf_crowp = sf->sf_ccolp = NULL;
sf->sf_ro.ri_crow = row;
- if (sf->sf_crowp != NULL)
- *sf->sf_crowp = row;
}
/*