Skip to contentSkip to conversation

__ASSEMBLY__ macro

U-Boot-Users Martin Winistörfer 2 participants 2 messages Apr 3, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

I just compiled the U-Boot code from the CVS and got an error. It seems to me setjmp.h is missing which is included in sched.c. The compiler can't find the setjmp() declaration.

While browsing through the could I found the __ASSEMBLY__ macro in some codes, which in- or excludes some declarationen if defined.

What's about this __ASSEMBLY__ macro and how can I use it. Can anyone give me some explanations? Many thanks.

Martin

Signature · 2 lines
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage!
#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

I just compiled the U-Boot code from the CVS and got an error. It seems to me setjmp.h is missing which is included in sched.c. The compiler can't find the setjmp() declaration.

I know. I'm working on cleaning up the code that was provided to me. I thought it was intertesting to include even if it is nt perfect.

Quoted 5 lines

While browsing through the could I found the __ASSEMBLY__ macro in some codes, which in- or excludes some declarationen if defined.

What's about this __ASSEMBLY__ macro and how can I use it. Can anyone give me some explanations? Many thanks.

It allows to use #include files in assembler code by removing things
(like C structure definitions) which the assembler would not
understand. It get's set by the Makefile (see "AFLAGS" in config.mk).

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Anyone who isn't confused here doesn't really know what's going on.