vga: Small fixes

Properly clear screen and don't write to constants

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt 2012-01-19 17:16:25 +11:00
parent 44e8d9a57d
commit ff882e7d32
1 changed files with 4 additions and 4 deletions

View File

@ -13,9 +13,9 @@
my-space pci-device-generic-setup
\ Defaults, overriden from qemu
d# 800 CONSTANT disp-width
d# 600 CONSTANT disp-height
d# 8 CONSTANT disp-depth
d# 800 VALUE disp-width
d# 600 VALUE disp-height
d# 8 VALUE disp-depth
\ Determine base address
10 config-l@ translate-my-address 3 not AND VALUE fb-base
@ -189,7 +189,7 @@ a CONSTANT VBE_DISPI_INDEX_NB
;
: clear-screen
fb-base disp-width disp-height * 0 rfill
fb-base disp-width disp-height disp-depth 7 + 8 / * * 0 rfill
;
: read-settings