nios2: set up the debug UART early
Set up the debug UART early if enabled, so that it is ready to use. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Chin Liang See <clsee@altera.com>
This commit is contained in:
parent
94985cc9d3
commit
e4f348ba6f
|
@ -106,6 +106,13 @@ _reloc:
|
||||||
stw r0, 4(sp)
|
stw r0, 4(sp)
|
||||||
mov fp, sp
|
mov fp, sp
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_UART
|
||||||
|
/* Set up the debug UART */
|
||||||
|
movhi r2, %hi(debug_uart_init@h)
|
||||||
|
ori r2, r2, %lo(debug_uart_init@h)
|
||||||
|
callr r2
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Allocate and initialize reserved area, update SP */
|
/* Allocate and initialize reserved area, update SP */
|
||||||
mov r4, sp
|
mov r4, sp
|
||||||
movhi r2, %hi(board_init_f_alloc_reserve@h)
|
movhi r2, %hi(board_init_f_alloc_reserve@h)
|
||||||
|
|
Loading…
Reference in New Issue