summaryrefslogtreecommitdiff
path: root/include/kgdb.h
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2022-01-01 19:13:27 +0200
committerTom Rini <trini@konsulko.com>2022-01-18 08:31:02 -0500
commit78fc0395c01640df0fa9b8be736bf855a0416b56 (patch)
treed9d621f78628d6dff4d16f7a2e4ca736378cf1ed /include/kgdb.h
parent485c90c06bbb01f9ae3e5746836152ce5ea36c0f (diff)
downloadu-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 'include/kgdb.h')
-rw-r--r--include/kgdb.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/kgdb.h b/include/kgdb.h
index 616ce4451f..bdba347a7f 100644
--- a/include/kgdb.h
+++ b/include/kgdb.h
@@ -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);