Re: a "hello world" under l4

"C. P. Ghost" <[email protected]> Sun, 16 May 2010 17:20:38 +0200
Newsgroups gmane.comp.micro-kernel.l4.l4ka.general
Message-ID <[email protected]>
2010/5/15 Aizatullin Alexey <[email protected]>:
>
> Hello,
> I'd like to try and write some kind of "hello world" application under l4,
> but didn't find enough information...
> may be, it will be a good idea to add such example code? Or, where can I get
> the L4 System Programmer's Manual?
> Thanks for your reply.

You could try to replace the pingpong application (or
grabmem) with a simple "hello, world" program of your
own. It's not that hard, really. Just use the provided io
library <l4io.h>. It's really primitive, but enough to say
hello, and read some keys (by polling).

After that, I'd suggest that you implement a *simple*
keyboard/console driver task, so that you don't have to
poll the keyboard anymore (use interrupts!); and then to
write a simple library that does IPC to access this console.
task. IPC maybe even using IDL4 if you don't fear licensing
issues w.r.t. the generated stubs.

That would be a great step forward. From there on, "all"
you need to do is write the rest of the OS personality. ;-)

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/