From 95fea803e1936878bc2a863402b9a4ac0418bc26 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Tue, 2 Dec 2014 13:44:52 +0800 Subject: [PATCH] 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 --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 07dae79..876ccf8 100644 --- a/main.c +++ b/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);