[OpenBIOS] SOLVED: the mystery of Solaris on SPARC32 and the missing Forth arguments

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Wed Oct 20 20:40:33 CEST 2010


Blue Swirl wrote:

>> I suspect that you'll need to come up with something along similar lines for
>> SPARC32. Blue, any thoughts?
> 
> On Sparc32 the client interface is not used and there is no 'flushw'
> instruction, but otherwise saving and restoring %g registers and
> flushing windows may be helpful.

Hmmm okay. Please find attached the following very very alpha quality 
patch (read: it doesn't work) that attempts to flush the windows using 
the FLUSH_ALL_KERNEL_WINDOWS macro and save the globals in an ASM 
wrapper before calling the actual obp_fortheval_v2() C function, then 
attempting to restore the globals and return.

Sadly I think that I've misunderstood something in my copy-and-paste 
quality patch as SPARC32 Solaris boot seems to get *less* far than it 
did without this patch, so my effort must have a fundamental bug 
somewhere...


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

Sirius Labs: http://www.siriusit.co.uk/labs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openbios-sparc32-callromvec.patch
Type: text/x-diff
Size: 3653 bytes
Desc: not available
URL: <http://lists.openbios.org/pipermail/openbios/attachments/20101020/7f32c616/attachment.bin>


More information about the OpenBIOS mailing list