From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 14 Apr 2010 19:38:16 +0200 Subject: [U-Boot] [PATCH 1/2] improve printf behavior on arm/pxa after enabling 64bit support in printf by default. In-Reply-To: <20100409214011.EC6DB1E173@gemini.denx.de> References: <20100329162346.017a43dc@laska.campus-ws.pu.ru> <20100409214011.EC6DB1E173@gemini.denx.de> Message-ID: <201004141938.16950.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dne P? 9. dubna 2010 23:40:11 Wolfgang Denk napsal(a): > Dear Mikhail Kshevetskiy, > > In message <20100329162346.017a43dc@laska.campus-ws.pu.ru> you wrote: > > commit 4b142febff71eabdb7ddbb125c7b583b24ddc434 (common: delete > > CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL) breaks printf on > > my arm/pxa270 board. For example, the code > > > > int a = 128; > > printf("a= %d\n", a); > > > > will print zero on the console. The problem reproduced on gcc 4.1.1, > > 4.3.3, 4.4.1 and 4.4.2. > > > > This patch fix printf unless you'll need printing 64-bit values. > > I doubt that your patch addresses the real cause of the problem. > Did you check if the stack alignment problem discussed here earlier > has been fixed for your architecture? > > Best regards, > > Wolfgang Denk Yes, this is a NAK, sorry. The real problem is addressed by "[PATCH] PXA: Align stack to 8 bytes". LDRD and STRD need the memory address aligned to 8 bytes. Besides my patch also fixes the NAND driver, which didn't work as well and possibly various other issues.