Skip to content

Commit f10ada1

Browse files
committed
kernel: Fix register dump of the instruction pointer on x86_64
1 parent 257d746 commit f10ada1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/kernel/irq_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ inline void cpu_dump_regs()
133133
asm ("movq %%rsp, %0" : "=a" (regs[13]));
134134
asm ("movq %%rsi, %0" : "=b" (regs[14]));
135135
asm ("movq %%rdi, %0" : "=c" (regs[15]));
136-
asm ("movq %%rip, %0" : "=d" (regs[16]));
136+
asm ("leaq (%%rip), %0" : "=d" (regs[16]));
137137

138138
asm ("pushf; popq %0" : "=a" (regs[17]));
139139
asm ("movq %%cr0, %0" : "=b" (regs[18]));

0 commit comments

Comments
 (0)