All times are UTC-06:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Jan 19, 2005 10:51 am 
Offline

Joined: Wed Jan 05, 2005 1:56 pm
Posts: 1
Not sure if this is the right place to ask, but I'd like to clarify my understanding of being booted by open firmware.

As I understand it, the address open firmware expects me to call will be in r5 when my executable is entered, and when I call, the call record for open firmware (pointed to by r3) contains these basic areas:
Code:
addr thing
0 "open" # Pointer to name of method to call (asciiz)
4 number of arguments
8 number of returns
12 args ... (to n = 12 + 4 * number-of-arguments)
n returns
Open firmware expects to be called by blrl, with return address in r0.

And that the BAT and segment registers must be as they were when i was called initially.

My question is, is the above sufficient to make an open firmware call given most PPC openfirmware versions?

Additionally, netbsd boot code contains a firmworksbugs option that's quite complicated (it seems that the biggest problem is that this OF implementation starts with TLB miss exceptions on). Assuming that I want to load an elf binary on some newworld macs and more modern hardware, do I need a similar hack? Does this bug persist in firmware sold now?

Sorry for being a bit of a newbie ...
arty


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group