From: Wolfgang Denk Date: Mon, 27 Jul 2009 00:12:46 +0200 Subject: [U-Boot] [PATCH] Make include/common.h usable by assembler code In-Reply-To: <1248387468-9928-1-git-send-email-wd@denx.de> References: <20090722225108.036F7832E416@gemini.denx.de> <1248387468-9928-1-git-send-email-wd@denx.de> Message-ID: <20090726221246.E4FC0832E416@gemini.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 <1248387468-9928-1-git-send-email-wd@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 > --- > 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.