[Prev][Next][Index][Thread]

Re: console I/O setup




>   So I'm guessing I need to do something so the loaded executable will
> initialize the console or OSKit in some way ? I've tried using
> base_cpu_setup() and base_console_init(), but my printf()'s get ignored,
> and puts() or putchar() seem to cause a segfault.

If you look at the examples (eg examples/x86/hello.c), you'll see
you're supposed to call oskit_clientos_init before doing anything.  If
you use other facilities such as device drivers, filesystem, network,
etc, you'll need to call other initialisers too.  See examples/x86/*.c
and startup/*.c and, of course, the documentation for details.  

Alastair Reid


Follow-Ups: References: