[okl4-developer] can't find some MACROS
Carl van Schaik
carl at ok-labs.com
Thu Mar 6 00:16:10 EST 2008
Hi Charles,
The tcb_layout.h and asmsysms.h files are autogenerated during the build
and should be in the build/pistachio directory.
These headers contain offsets into structures so that assembly code can
access C/C++ datastructures.
Since you seem to be having a problem compiling these files... MKASMSYM
is failing, leads me to think you have got the buildsystem or compiler
setup confused. What I think is happening is that the build system
should compile a asmsysm.c file to a assembly file, but should not do an
assemble stage. It looks like for you its trying to run the assembler
over this file.
The asmsyms stuff is built with the AsmFile function in tools/build.py
this in turn uses ASMCOM
in tools/toolchains.py for me, i see the line:
self.dict["ASMCOM"] = "$CC -S $CC_PLAT_FLAGS $CPPFLAGS
$_CPPDEFFLAGS $_CPPINCFLAGS -c -o $TARGET $SOURCES"
... the "-S" flag is what causes the compiler to stop after outputting
the compiled assembly source
I hope this helps
--
regards
Carl
Charles.VANWITTENBERGHE at fr.thalesgroup.com wrote:
> Hi,
>
> I'm trying to compile the OKL4 source code for my MIPS32 (in fact, just the Pistachio kernel), and I'm almost done.
>
> But I still have a problem with some macros, as OFS_TCB_PREEMPTION_CONTINUATION, called in traps.spp. This file is calling some includes (tcb_layout.h and asmsym.h) which do not exist anymore. I assume they were containing those macros, but where are they now, or how to evaluate their values?
>
> I also have a problem with the function :
> #define MKASMSYM(sym, val) __asm__ __volatile__ ("SYM " #sym " %n0" : : "i" (-(val)))
> Which provide an error such as:
> Error: unrecognized opcode `sym PT_S8 148'
> Is that 'sym' instruction supposed to work with gnu assembler ?
>
> Thanks for your answers.
>
> Charles.
> ----
>
> Charles Van Wittenberghe
> Stagiaire service SES
> THALES COMMUNICATION
> 110 Avenue du Maréchal Leclerc
> BP 70942- 49309 CHOLET
> tel : 06.84.12.45.87
> charles.vanwittenberghe at fr.thalesgroup.com
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
>
More information about the Developer
mailing list