[okl4-developer] Getting initial virtual and physical memory information within a cell
Alexandre Courbot
alex at dcl.info.waseda.ac.jp
Wed Nov 19 14:13:30 EST 2008
Hello everybody,
These questions may sound like beginner's questions - well, that's
because actually they are. Sorry if I am asking the obvious here.
I'm playing around with OKL4 3.0 and am trying to set up a cell that
is able to create new protection domains and start threads within
them. As far as I have seen, no example demonstrates such a feature.
I'm trying to use the OKL4 library as much as possible, and as
recommanded on the highest level available. The initial things my cell
should therefore do are getting the initial virtual memory pool and
physical segment pool as stated.
This is where I'm blocked, basically - I understand that I can get a
list of available physical segments using okl4_env_segments and
parsing the result, but this okl4_env_segment only provides very
limited information about the physical memory. I cannot even know the
start address or name under which it is defined by Elfweaver. In
addition, I failed to find any interface to get virtual memory
information. I feel like I'm missing a big point here, so any pointer
would be greatly appreciated.
Also, how can I know which resource names are defined for a given
cell? In the pingpong exemple, I have seen that the main kspace can be
obtained through the MAIN_KSPACE name, but nothing appears about this
entry name in the documentation.
Thanks for any help,
Alex.
More information about the Developer
mailing list