L4/Linux problem

Michael Hohmuth hohmuth at innocent.com
Fri Nov 27 02:37:00 CET 1998


"Sun-Mi You" <smyou at postech.ac.kr> writes:

> Our L4/Linux was hanged at follow code.
> 
> in 'linux/arch/l4-i386/chead.c '
> 
>   /* create idt */
>   {
>     extern long idt_table;
>     struct entry_t {unsigned short w0, w1,w2,w3;} ;
>     struct entry_t *entries =
>       (struct entry_t *)((unsigned long)emu_lib_text +
>                          ((unsigned long)&idt_table - EMULIB_CODE_ADDRESS));
>     unsigned short int tmp;
>     int i;
> 
> => this point!
> 
>     for (i=0; i<20; i++, entries++)
>       {
>         tmp = entries->w1;
>         entries->w1 = entries->w3;
>         entries->w3 = tmp;
>       }
> 
> What problem is this?
> 
> ( I think it may be some memory problem. )

I think this is a problem one other user also experienced: The system
call IPC library (called ``emulation library'' for hysterical reasons)
in linux/arch/l4-i386/emulib/ has been linked to a wrong virtual
address because the magic in this directory's Makefile failed.  One
possible reason is that you don't have a `cpp' in your $PATH.

Does it help to replace "cpp" with "gcc -E" in this Makefile?

Michael
-- 
hohmuth at innocent.com, hohmuth at sax.de
http://www.sax.de/~hohmuth/



More information about the l4-hackers mailing list