[okl4-developer] Problem with inline assembler on arm926ejs

Lukas HANEL lukas.hanel at st.com
Thu Apr 17 19:42:13 EST 2008


Hi

finally it was not too difficult...

~/okl4_2.1$ grep -R " _(" .
./arch/arm/pistachio/include/asm_gnu.h:#define _(x)                   
"%["#x"]"
./arch/arm/pistachio/include/asm_rvct.h:#define _(x)                    #x

~/okl4_2.1$ grep -R asm_gnu.h .
./arch/arm/pistachio/include/asm.h:#include <kernel/arch/asm_gnu.h>

~/okl4_2.1$ grep -R asm.h .
./arch/arm/pistachio/cpu/arm926ejs/include/cpu.h:#include
<kernel/arch/asm.h>

So that's how it was solved for cpu.h in the new release. Adding the
header in cache.h solves the problem.

Thanks a lot for this nice piece of software,
Lukas Hänel

Lukas Hänel wrote:
> Hi
>
> When switching to the 2.1 release I get the same compilation problem,
> but now in the cache file:
> okl4_2.1/arch/arm/pistachio/cpu/arm926ejs/include/cache.h
>
> What can I do to get a correct version?
>
> thanks,
> Lukas Hänel
>
> Listing:
>
> ~/okl4_2.1$ ./tools/build.py machine=nhk15 project=l4test simulate
> scons: Reading SConscript files ...
> architecture arm is not yet supported by libcompat.
> architecture arm is not yet supported by libcompat.
> scons: done reading SConscript files.
> scons: Building targets ...
> [INST] build/pistachio/include/kernel/cpu/cache.h
> [CXX ] build/pistachio/l4kernel/object/src/asid.o
> In file included from build/pistachio/include/kernel/arch/cache.h:67,
>                  from build/pistachio/include/kernel/cache.h:139,
>                  from build/pistachio/include/kernel/arch/ver/ptab.h:91,
>                  from build/pistachio/include/kernel/arch/ver/pgent.h:93,
>                  from build/pistachio/include/kernel/arch/pgent.h:70,
>                  from build/pistachio/include/kernel/space.h:98,
>                  from pistachio/src/asid.cc:62:
> build/pistachio/include/kernel/cpu/cache.h: In static member function
> `static void arm_cache::cache_flush_i()':
> build/pistachio/include/kernel/cpu/cache.h:149: error: expected `)'
> before "_"
> build/pistachio/include/kernel/cpu/cache.h:147: warning: unused variable
> 'zero'



More information about the Developer mailing list