PPC/Open Firmware Memory Management

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
inx
Member
Member
Posts: 142
Joined: Wed Mar 05, 2008 12:52 am

PPC/Open Firmware Memory Management

Post by inx »

Hello all,

I'm not sure if anyone here has any experience with Open Firmware or PowerPC systems that use it,
but I'm currently attempting to get my second-stage bootloader prototype written on said platform.
My problem is that Open Firmware running in virtual mode (allowing my OS to do its memory management)
requires that I define some helper callbacks (map-in being the one I'm worried about). The standard
states that this callback requests a specific physical page to be mapped into a virtual address in
open firmware's address space. The problem with that is that it doesn't define a physical region that
this request will be from. I really, really do not want to have to use a bitmap for all memory, but if
this callback really can request a page from anywhere in physical memory, I'm going to have to.
Does anyone know any more about this that can shed some light on a solution?

Thanks in advance,
Yoshi
Post Reply