]> git.sur5r.net Git - u-boot/commit
Make include/common.h usable by assembler code
authorWolfgang Denk <wd@denx.de>
Thu, 23 Jul 2009 22:17:48 +0000 (00:17 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 26 Jul 2009 22:12:32 +0000 (00:12 +0200)
commitfcd3c87e495f3c48b70c919869fb1e0b93d4880b
treeb9840b891a1f27b64714a10d984e9bdc35eeaf2f
parentdeec15b3064d3bb0189aede3c2921fd7ee401a0f
Make include/common.h usable by assembler code

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@denx.de>
cpu/arm926ejs/start.S
include/common.h