[U-Boot] [PATCH] Make include/common.h usable by assembler code

Wolfgang Denk wd at denx.de
Mon Jul 27 00:12:46 CEST 2009


In message <1248387468-9928-1-git-send-email-wd at denx.de> you wrote:
> Commit 70ebf316 factored out the ROUND() macro into include/common.h,
> not realizing that the primary use of this macro on AT91 systems was
> in start.S where common.h was not included, and could not be included
> because it contains a lot of C code which the assembler doesn't
> understand.
> 
> This patch wraps such code in common.h in a "#ifndef __ASSEMBLY__"
> construct, and then adds an include to cpu/arm926ejs/start.S thus
> solving the problem.
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
>  cpu/arm926ejs/start.S |    1 +
>  include/common.h      |   37 ++++++++++++++++++++-----------------
>  2 files changed, 21 insertions(+), 17 deletions(-)

Applied.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Einstein argued that there must be simplified explanations of nature,
because God is not capricious or arbitrary. No  such  faith  comforts
the software engineer.                             - Fred Brooks, Jr.


More information about the U-Boot mailing list