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:
Ovidiu Panait
2022-01-01 19:13:27 +02:00
committed by Tom Rini
parent 485c90c06b
commit 78fc0395c0
3 changed files with 16 additions and 13 deletions

View File

@@ -39,7 +39,16 @@ typedef
kgdb_data;
/* these functions are provided by the generic kgdb support */
extern void kgdb_init(void);
/**
* kgdb_init()
*
* Perform initializations to allow debugging U-Boot with gdb over a serial
* link. It is called during the generic board init sequence.
*
* Return: 0 if OK
*/
int kgdb_init(void);
extern void kgdb_error(int);
extern int kgdb_output_string(const char *, unsigned int);
extern void breakpoint(void);