forked from len0rd/rockbox
We expect a fixed FRAMEBUFFER_SIZE that's width*height*bitdepth, and we mmap()ed that in. However, when doing the initial fb clear, we were using the hardware-provided 'finfo.smem_len' which could be larger than FRAMEBUFFER_SIZE. This overran our mmap and triggered a segfault. Correct this by mmaping (and clearing) the entire smem_len. As a safety measure, panic if smem_len is smaller than our expected FRAMEBUFFER_SIZE Change-Id: I3222139c7aed6e8e8ee232b1730edd5cd70065ff |
||
|---|---|---|
| .. | ||
| arm | ||
| coldfire | ||
| hosted | ||
| mips | ||