coreboot-kgpe-d16/payloads/libpayload/drivers
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
..
i8042 libpayload/drivers/i8042: add error messages to i8042_probe 2019-12-20 17:43:17 +00:00
serial libpayload/serial/qcs405: Mark uart console as such 2019-07-26 08:41:38 +00:00
storage libpayload: ahci: Prevent memory leaks when failing on init 2019-05-15 17:54:02 +00:00
timer Remove MIPS architecture 2019-11-20 10:10:48 +00:00
udc Change all clrsetbits_leXX() to clrsetbitsXX() 2019-12-04 14:11:17 +00:00
usb libpayload/xhci: Fix MPS handling in set_address 2020-02-05 09:56:26 +00:00
video libpayload/corebootfb: Fix character buffer relocation 2020-02-17 15:48:23 +00:00
Makefile.inc Remove imgtec/pistachio SoC 2019-11-20 10:10:44 +00:00
cbmem_console.c libpayload: Implement reading from CBMEM console 2019-12-16 09:47:38 +00:00
hid.c
mouse_cursor.c payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
nvram.c payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
options.c libpayload/option table: Don't pad string entries with garbage 2019-04-11 12:03:07 +00:00
pci.c
speaker.c