From: Wolfgang Denk Date: Thu, 03 Apr 2003 09:42:44 +0200 Subject: [U-Boot-Users] __ASSEMBLY__ macro In-Reply-To: Your message of "Thu, 03 Apr 2003 08:37:30 +0200." <14603.1049351850@www62.gmx.net> Message-ID: <20030403074249.B46F2C587C@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <14603.1049351850@www62.gmx.net> 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. > 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 -- 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.