mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
sandbox: video: Correct the address of the copy base
The intention is for the copy base to start halfway through the frame-buffer area. At present is it actually below the frame buffer, which could have anything in it (probably it is malloc space). Fix this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
301af2388a
commit
8405174391
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ static int sandbox_sdl_probe(struct udevice *dev)
|
|||
uc_priv->vidconsole_drv_name = plat->vidconsole_drv_name;
|
||||
uc_priv->font_size = plat->font_size;
|
||||
if (IS_ENABLED(CONFIG_VIDEO_COPY))
|
||||
uc_plat->copy_base = uc_plat->base - uc_plat->size / 2;
|
||||
uc_plat->copy_base = uc_plat->base + uc_plat->size / 2;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue