summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/lib/c_start.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/x86/lib/c_start.S b/src/arch/x86/lib/c_start.S
index 005ac33ee9..fd9dce78c5 100644
--- a/src/arch/x86/lib/c_start.S
+++ b/src/arch/x86/lib/c_start.S
@@ -78,6 +78,9 @@ _start:
/* Restore the stack location */
movl %ebp, %esp
+#if CONFIG_GDB_WAIT == 1
+ call gdb_stub_breakpoint
+#endif
/* The boot_complete flag has already been pushed */
call hardwaremain
/* NOTREACHED */
@@ -228,7 +231,7 @@ int_hand:
iret
-#if CONFIG_GDB_STUB == 1
+#if CONFIG_GDB_WAIT == 1
.globl gdb_stub_breakpoint
gdb_stub_breakpoint: