diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2022-01-01 19:13:27 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-18 08:31:02 -0500 |
commit | 78fc0395c01640df0fa9b8be736bf855a0416b56 (patch) | |
tree | d9d621f78628d6dff4d16f7a2e4ca736378cf1ed /common/kgdb.c | |
parent | 485c90c06bbb01f9ae3e5746836152ce5ea36c0f (diff) | |
download | u-boot-78fc0395c01640df0fa9b8be736bf855a0416b56.tar.gz u-boot-78fc0395c01640df0fa9b8be736bf855a0416b56.tar.bz2 u-boot-78fc0395c01640df0fa9b8be736bf855a0416b56.zip |
common: board_r: drop initr_kgdb wrapper
Add a return value to kgdb_init and use it directly in the post-relocation
init sequence, rather than using a wrapper stub. Also, move the "KGDB"
print message inside kgdb_init().
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Diffstat (limited to 'common/kgdb.c')
-rw-r--r-- | common/kgdb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/kgdb.c b/common/kgdb.c index 4493a15919..29b09fcfe5 100644 --- a/common/kgdb.c +++ b/common/kgdb.c @@ -527,15 +527,18 @@ handle_exception (struct pt_regs *regs) * kgdb_init must be called *after* the * monitor is relocated into ram */ -void -kgdb_init(void) +int kgdb_init(void) { + puts("KGDB: "); + kgdb_serial_init(); debugger_exception_handler = handle_exception; initialized = 1; putDebugStr("kgdb ready\n"); puts("ready\n"); + + return 0; } void |