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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user