libpayload: Fix baseaddr access in serial/tegra.c
Fix baseaddr typecast to allow use in 32- and 64-bit systems BUG=None BRANCH=None TEST=Compiles successfully for rush Original-Change-Id: Ie5ded744d75a0ae4d1428d04ff2478bdfe54d146 Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/204424 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> Original-Tested-by: Furquan Shaikh <furquan@chromium.org> (cherry picked from commit b56814fe5fc7d3a2fdfb324d4baafb27a9d3ffd6) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: Icedc1c819e39b92a0dd92e98f848e15b3039dfbe Reviewed-on: http://review.coreboot.org/8123 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
69db293aed
commit
33434730ea
|
@ -99,7 +99,7 @@ void serial_init(void)
|
||||||
if (!lib_sysinfo.serial || !lib_sysinfo.serial->baseaddr)
|
if (!lib_sysinfo.serial || !lib_sysinfo.serial->baseaddr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uart_regs = (struct tegra_uart *)lib_sysinfo.serial->baseaddr;
|
uart_regs = (struct tegra_uart *)(uintptr_t)lib_sysinfo.serial->baseaddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void serial_console_init(void)
|
void serial_console_init(void)
|
||||||
|
|
Loading…
Reference in New Issue