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 Change-Id: Ie5ded744d75a0ae4d1428d04ff2478bdfe54d146 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/204424 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
36008e728b
commit
b56814fe5f
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ void serial_init(void)
|
|||
if (!lib_sysinfo.serial || !lib_sysinfo.serial->baseaddr)
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue