diff options
author | Simon Glass | 2021-11-19 13:23:49 -0700 |
---|---|---|
committer | Anatolij Gustschin | 2021-12-26 23:02:19 +0100 |
commit | 84051743917e5a34936bc47923838fd5eda24f43 (patch) | |
tree | 4babdfee17cc66553da576e3cb484fd7c118323d /drivers/video | |
parent | 301af2388af36b62ddec08b547300f5b5464df47 (diff) |
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/sandbox_sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c index de8c6609c46..eb321ad17f5 100644 --- a/drivers/video/sandbox_sdl.c +++ b/drivers/video/sandbox_sdl.c @@ -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; } |