From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Kiryanov Date: Tue, 28 May 2013 09:10:57 +0300 Subject: [U-Boot] [PATCH] drivers:lcd: fix unaligned access on lcd In-Reply-To: <000301ce5ace$42b00dc0$c8102940$%wilczek@samsung.com> References: <1369381565-13946-1-git-send-email-p.wilczek@samsung.com> <20130524183304.707A2382FC3@gemini.denx.de> <000301ce5ace$42b00dc0$c8102940$%wilczek@samsung.com> Message-ID: <51A44A71.8080502@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Piotr, On 05/27/2013 02:35 PM, Piotr Wilczek wrote: > Dear Wolfgang Denk, > >> -----Original Message----- >> From: Wolfgang Denk [mailto:wd at denx.de] >> Sent: Friday, May 24, 2013 8:33 PM >> To: Piotr Wilczek >> Cc: u-boot at lists.denx.de; Kyungmin Park >> Subject: Re: [U-Boot] [PATCH] drivers:lcd: fix unaligned access on lcd >> [...] > > My case is a bmp unzipped to a 4-byte aligned address. The two signature bytes of the bmp header make the other fields 4-byte unaligned. We could force unzip the bmp to an aligned address + 2. > > Is this a better solution? That is the solution we settled on the last time this was discussed. See CONFIG_SPLASHIMAGE_GUARD in the README file if your use case involves user input, or just pick an aligned address + 2 in your code. -- Regards, Nikita.