Use hv-logical-memop for blinking the screen on qemu vga
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
e6aac8b56d
commit
440e662879
|
@ -255,6 +255,16 @@ a CONSTANT VBE_DISPI_INDEX_NB
|
||||||
: display-remove ( -- )
|
: display-remove ( -- )
|
||||||
;
|
;
|
||||||
|
|
||||||
|
: hcall-invert-screen ( -- )
|
||||||
|
frame-buffer-adr frame-buffer-adr 3
|
||||||
|
screen-height screen-width * screen-depth * /x /
|
||||||
|
1 hv-logical-memop
|
||||||
|
;
|
||||||
|
|
||||||
|
: hcall-blink-screen ( -- )
|
||||||
|
hcall-invert-screen hcall-invert-screen
|
||||||
|
;
|
||||||
|
|
||||||
: display-install ( -- )
|
: display-install ( -- )
|
||||||
is-installed? NOT IF
|
is-installed? NOT IF
|
||||||
." Installing QEMU fb" cr
|
." Installing QEMU fb" cr
|
||||||
|
@ -266,6 +276,8 @@ a CONSTANT VBE_DISPI_INDEX_NB
|
||||||
disp-width char-width / disp-height char-height /
|
disp-width char-width / disp-height char-height /
|
||||||
disp-depth 7 + 8 / ( width height #lines #cols depth )
|
disp-depth 7 + 8 / ( width height #lines #cols depth )
|
||||||
fb-install
|
fb-install
|
||||||
|
['] hcall-invert-screen to invert-screen
|
||||||
|
['] hcall-blink-screen to blink-screen
|
||||||
true to is-installed?
|
true to is-installed?
|
||||||
THEN
|
THEN
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue