diff options
author | Nikita V. Youshchenko <yoush@cs.msu.su> | 2008-10-03 00:03:55 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-14 15:29:37 +0200 |
commit | ec4d8c1c1d94a790c1473ae8aace282b817c3123 (patch) | |
tree | bbe1aa2335efd9058e66135995c7dbf2ee34c526 /board/etin | |
parent | 3d0ea3110f3431b6c2aee882784f39f97b20bce9 (diff) | |
download | u-boot-imx-ec4d8c1c1d94a790c1473ae8aace282b817c3123.zip u-boot-imx-ec4d8c1c1d94a790c1473ae8aace282b817c3123.tar.gz u-boot-imx-ec4d8c1c1d94a790c1473ae8aace282b817c3123.tar.bz2 |
fsl_diu: fix alignment error that caused malloc corruption
When aligning malloc()ed screen_base, invalid offset was added.
This not only caused misaligned result (which did not cause hardware
misbehaviour), but - worse - caused screen_base + smem_len to
be out of malloc()ed space, which in turn caused breakage of
futher malloc()/free() operation.
This patch fixes screen_base alignment.
Also this patch makes memset() that cleans framebuffer to be executed
on first initialization of diu, not only on re-initialization. It looks
correct to clean the framebuffer instead of displaying random garbage;
I believe that was disabled only because that memset caused breakage
of malloc/free described above - which no longer happens with the fix
described above.
Signed-off-by: Nikita V. Youshchenko <yoush@debian.org>
Diffstat (limited to 'board/etin')
0 files changed, 0 insertions, 0 deletions