Subject: colsole on internal video LC475
To: None <port-mac68k@netbsd.org>
From: None <ken@ayame.mfd.cs.fujitsu.co.jp>
List: port-mac68k
Date: 04/13/1999 14:00:25
Hello.
My environment:
LC475
16inch(832x624) 16bpp-color
NetBSD1.3.3 (changing videoaddr=0xf9000080 as someone discussed)
Xmac68k_OSFA
When booting NetBSD and when quiting X,
console screen (LC475 internal video) is cleared.
But bottom 4 lines are not cleared and remained as MacOS or X.
I thought it is caused by function clear_screen() in dev/ite.c .
Number of lines cleared by clear_screen(2) is only a multipul
of CHARHEIGHT. CHARHIGHT is 10.
on 19inch(1024x768) screen, bottom 8 lines remained not cleared.
So,I changed ite.c as below and recompile kernel.
Is it wrong way? and are there any reason of multipul of 10?
diff -C1 ite.c.orig ite.c
*** ite.c.orig Wed Nov 26 13:13:31 1997
--- ite.c Thu Apr 8 12:12:01 1999
***************
*** 500,502 ****
p += y * videorowbytes * CHARHEIGHT;
! len = scrrows - y;
break;
--- 500,502 ----
p += y * videorowbytes * CHARHEIGHT;
! len = (scrrows - y) * CHARHEIGHT;
break;
***************
*** 509,511 ****
}
! len = y;
break;
--- 509,511 ----
}
! len = y * CHARHEIGHT;
break;
***************
*** 513,515 ****
default:
! len = scrrows;
break;
--- 513,515 ----
default:
! len = height;
break;
***************
*** 517,519 ****
! for (i = len * CHARHEIGHT; i > 0; i--) {
bzero(p, screenrowbytes);
--- 517,519 ----
! for (i = len; i > 0; i--) {
bzero(p, screenrowbytes);
--
Ken'ichi Ishizaka