[okl4-developer] Platform recommendations

David Given dg at cowlark.com
Fri Sep 19 09:59:06 EST 2008


Josh Matthews wrote:
[...]
> Ok, so there's two ways to create projects:

Thanks very much --- that helped enormously. I have a project! It
builds! I can map memory into the root address space! All I need now is
a thread, a set of host binaries, and I can actually start *running* stuff.

Incidentally, when populating a new address space, the docs say that
there's a certain amount of stuff that is required to be in it: the
UTCB, the kernel reserved area, architecture-specific reserved areas,
etc. Playing with the debugger, while it will tell me the UTCB is mapped
at 0xE0000000 and there are page tables at 0xF0105e00, it doesn't show
anything there if I tell it to dump the page tables; and trying to
access those areas simply produces data aborts, so there really isn't
anything there. This obviously doesn't work as simply as I thought. Can
you point me at any more detailed info?

Also, is there any way of controlling the layout of the root address
space? Is it set up by OKL4 or by the boot loader? For example,
currently everything from 0-2GB is unmapped, which is ideal for my
purposes; but if this is subject to the whim of the boot loader, then I
can't rely on it remaining empty, and I'll have to create a new address
space simply to free up this area. That in turn will lead to rather more
build complexity (because the root server and my user task will have to
run at different addresses). So I'd rather not do that.

BTW, actually writing code for OKL4 feels rather scary: there seems to
be a real C library in there. After working with platforms like Nucleus
and an unnamed mobile phone OS that I can't talk about, this makes a
nice change. It's amazing how much you miss printf() if you can't get it...

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "All power corrupts, but we need electricity." --- Diana Wynne Jones,
│ _Archer's Goon_

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.okl4.org/pipermail/developer/attachments/20080919/c06f4994/attachment.pgp 


More information about the Developer mailing list