main: Print register list after initing serial
The serial is in an unknown state at the start, so print the register list after init. This will cause some registers to get clobbered. If we really need to know the state of the registers early on, we should copy them to RAM before our init code runs. Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
parent
a15a05f074
commit
95fea803e1
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
@ -185,10 +185,10 @@ static int list_registers(void)
|
|||
static int shell_run_command(char *line);
|
||||
static int do_init(void)
|
||||
{
|
||||
list_registers();
|
||||
|
||||
serial_init();
|
||||
|
||||
list_registers();
|
||||
|
||||
/* Disable system watchdog */
|
||||
writel(0x2200, 0xa0030000);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue