[SLOF] [PATCH RFC v0 2/3] Generalize output banner write routine
Nikunj A Dadhania
nikunj at linux.vnet.ibm.com
Mon Oct 10 03:09:50 AEDT 2016
Initial display output is replayed to vga/vnc display, similar facility
will be needed for virtio-serial console as the enumeration would only
happen during PCI discovery.
Generalize the write routine that could be used accordingly for
virtio-serial driver as well.
Signed-off-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>
---
board-qemu/slof/OF.fs | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/board-qemu/slof/OF.fs b/board-qemu/slof/OF.fs
index 7566c8b..c8df9ca 100644
--- a/board-qemu/slof/OF.fs
+++ b/board-qemu/slof/OF.fs
@@ -159,24 +159,30 @@ check-for-nvramrc
CREATE version-str 10 ALLOT
0 value temp-ptr
+: dump-display-write
+ s" screen" find-alias IF
+ drop terminal-write drop
+ THEN
+;
+
: dump-display-buffer
disp-ptr to temp-ptr
- " SLOF **********************************************************************" terminal-write drop
+ " SLOF **********************************************************************" dump-display-write
cr
version-str get-print-version
version-str @ \ start
version-str 8 + @ \ end
- over - terminal-write drop
- " Press 's' to enter Open Firmware." terminal-write drop
+ over - dump-display-write
+ " Press 's' to enter Open Firmware." dump-display-write
cr cr
temp-ptr disp-size > IF
temp-ptr disp-size MOD
dup
- prevga-disp-buf + swap disp-size swap - terminal-write drop
+ prevga-disp-buf + swap disp-size swap - dump-display-write
temp-ptr disp-size MOD
- prevga-disp-buf swap 1 - terminal-write drop
+ prevga-disp-buf swap 1 - dump-display-write
ELSE
- prevga-disp-buf temp-ptr terminal-write drop
+ prevga-disp-buf temp-ptr dump-display-write
THEN
;
--
2.7.4
More information about the SLOF
mailing list