mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 18:22:02 +02:00
video: Check for valid FB pointer before clearing
This command will start erasing at memory address zero if there is not a valid framebuffer address that was found during video_init(). This is a common case with Chrome OS devices in normal mode when we do not execute the video option rom in coreboot. Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
c94663170b
commit
ae63057446
@@ -2293,6 +2293,8 @@ int video_get_screen_columns(void)
|
|||||||
|
|
||||||
void video_clear(void)
|
void video_clear(void)
|
||||||
{
|
{
|
||||||
|
if (!video_fb_address)
|
||||||
|
return;
|
||||||
#ifdef VIDEO_HW_RECTFILL
|
#ifdef VIDEO_HW_RECTFILL
|
||||||
video_hw_rectfill(VIDEO_PIXEL_SIZE, /* bytes per pixel */
|
video_hw_rectfill(VIDEO_PIXEL_SIZE, /* bytes per pixel */
|
||||||
0, /* dest pos x */
|
0, /* dest pos x */
|
||||||
|
Reference in New Issue
Block a user