[OpenBIOS] PATCH: Display more information when ?fcode-verbose enabled
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Mon Apr 13 16:49:31 CEST 2009
Hi all,
Please find the enclosed patch which enhances the information displayed
on the console when ?fcode-verbose is enabled and the Fcode evaluator is
running. This is proving to be useful whilst trying to get Qemu to boot
a SPARC64 image, and so I think it should be added to the repository.
This patch adds the following information to the console display:
- The current address of the Fcode evaluator
- An optional (compile) prefix if in compile mode
- Any strings specified by b(") with a (const) prefix
- Any fcode numbers with a (fcode#) prefix
- Any branch offsets with an (offset) prefix
An example output from this patch gives output similar to the following
when trying to boot a SPARC64 disk image:
...
...
4ff4 : named-token [ 0xb6 ]
(const) get-devname
(fcode#) 87f
5003 : b(:) [ 0xb7 ]
5005 : (compile) [ 0x87c ]
5006 : (compile) b(") [ 0x12 ]
(const) bootpath
5011 : (compile) [ 0x87e ]
5012 : (compile) b?branch [ 0x14 ]
(offset) 1b
5015 : (compile) b(") [ 0x12 ]
(const) Can't find bootpath
502a : (compile) type [ 0x90 ]
502c : (compile) abort [ 0x216 ]
502d : (compile) b(>resolve) [ 0xb2 ]
502f : (compile) [ 0x87d ]
5031 : (compile) [ 0x802 ]
5032 : (compile) b(;) [ 0xc2 ]
5034 : [ 0x87f ]
Can't find bootpath
byte-load: exception caught!
0 >
This is much more helpful when it comes to tracing the results of fcode
evaluation and trying to work out why a particular piece of code is failing.
ATB,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fcode-verbose.patch
Type: text/x-diff
Size: 1228 bytes
Desc: not available
URL: <http://lists.openbios.org/pipermail/openbios/attachments/20090413/1424b7b4/attachment.bin>
More information about the OpenBIOS
mailing list