diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-02-26 17:32:26 +0100 |
|---|---|---|
| committer | Leo Yu-Chi Liang <[email protected]> | 2024-03-12 14:36:13 +0800 |
| commit | 25e7d4bf6445058cc9c70cb806b92efa01fa9cb5 (patch) | |
| tree | 7a25f75c0030b81c7e667e37366bc8f597420806 /include/linux | |
| parent | 7480282eca70c737d123b076a80395dd3bdd9818 (diff) | |
serial: move sbi_dbcn_available to .data section
U-Boot SPL loads the device-tree directly behind main U-Boot overlapping
the .bss section. reserve_fdt() is called in board_init_f() to relocate the
device-tree to a safe location.
Debug UARTs are enabled before board_init_f(). With sbi_dbcn_available in
the .bss section the device-tree is corrupted when _debug_uart_init() is
called in the SBI serial driver. Move the variable to the .data section.
Link: https://bugs.launchpad.net/ubuntu/+source/u-boot/+bug/2054091
Fixes: dfe08374943c ("risc-v: implement DBCN based debug console")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Tested-by: Aurelien Jarno <[email protected]>
Tested-by: Conor Dooley <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
