
28 May
2013
28 May
'13
8:10 a.m.
Hi Piotr,
On 05/27/2013 02:35 PM, Piotr Wilczek wrote:
Dear Wolfgang Denk,
-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Friday, May 24, 2013 8:33 PM To: Piotr Wilczek Cc: u-boot@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.