coreboot-kgpe-d16/payloads
Nico Huber 16043d6742 libpayload/corebootfb: Fix character buffer relocation
The `chars` pointer references the heap which is part of the payload
and relocated along with it. So calling phys_to_virt() on it was
always wrong; and the virt_to_phys() at its initialization was a
no-op anyway, when the console was brought up before relocation.

While we are at it, add a null-pointer check.

Change-Id: Ic03150f0bcd14a6ec6bf514dffe2b9153d5a6d2a
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38536
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2020-02-17 15:48:23 +00:00
..
coreinfo coreinfo/coreinfo.c: Correct main function signature 2020-02-04 16:11:58 +00:00
external payloads/seabios: Update stable from 1.12.1 to 1.13.0 2019-12-13 16:31:05 +00:00
libpayload libpayload/corebootfb: Fix character buffer relocation 2020-02-17 15:48:23 +00:00
linuxcheck Makefile.inc, payloads: Enable -Wvla 2019-08-20 20:57:01 +00:00
nvramcui Makefile.inc, payloads: Enable -Wvla 2019-08-20 20:57:01 +00:00
Kconfig payloads/bayou: remove unhooked payload 2019-12-09 09:51:23 +00:00
Makefile.inc