From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Fri, 12 Nov 2010 09:04:40 +0100 Subject: [U-Boot] [PATCH] arm: add 8-byte alignment for ABI compliance before board_init_f In-Reply-To: <4CDCEA8F.9060709@denx.de> References: <1289544835-24425-1-git-send-email-hs@denx.de> <4CDCE769.8080209@emk-elektronik.de> <4CDCEA8F.9060709@denx.de> Message-ID: <4CDCF518.2030204@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 12/11/2010 08:19, Heiko Schocher a ?crit : >> One further thought, why not init the reserved register in assembly and >> remove the gd relevant code in C? But that bears some risk if the register >> is changed and the assembly is forgotten to adapt.. > > No, I think this is to risky ... It is absolutely not risky. It is simply infeasible. :) Different ARM toolchains use registers in different ways. Go from one toolchain to another, or from one *version* of a toolchain to another, and your "reserved" register is not any more. Amicalement, -- Albert.