[EMAIL PROTECTED] wrote:
> 
> I see two options:
> 
> - Copy the functions the are needed into SDRAM
> - Copy all of Linuxbios into SDRAM and run all of it from there.
> 

For LinuxBIOS on DoC, we use Option 2.

> Questions:
> 
> - What will bite me if I try the second option?  The only absolute jump
>   that I know about is when switching to protected mode.

Nothing, I think. But you have to seperate your LinuxBIOS two parts.
One is the IPL doing the neceressary DRAM init and Copy the SPL to
DRAM for doing other things.

> - How relocatable is the code?

Not relocatable at all. Every address is "hardcoded" in ldscript.ld.

> - What about references to static contants?

What is "static constants"

> - Do I need to create a special linker segment for this?

I am not sure what you mean. The IPL and SPL use two different ldscript.
The IPL just "load" the SPL to where it should be (as defined by
ldscript).
And jump there.

> - Should I compile linuxbios to be located someplace else from the start
>   and copy it there before doing much of anything?
> 

Yes.

Ollie

Reply via email to