summaryrefslogtreecommitdiff
path: root/src/arch/x86/c_start.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/c_start.S')
-rw-r--r--src/arch/x86/c_start.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/x86/c_start.S b/src/arch/x86/c_start.S
index 6bea8db10d..94b9bd9fa5 100644
--- a/src/arch/x86/c_start.S
+++ b/src/arch/x86/c_start.S
@@ -129,8 +129,9 @@ _start:
gdb_stub_breakpoint:
#if ENV_X86_64
pop %rax /* Return address */
- pushfl
- push %cs
+ pushfq
+ mov %cs, %rbx
+ push %rbx
push %rax /* Return address */
push $0 /* No error code */
push $32 /* vector 32 is user defined */