We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 257d746 + f10ada1 commit 48e83cbCopy full SHA for 48e83cb
1 file changed
src/kernel/irq_manager.cpp
@@ -133,7 +133,7 @@ inline void cpu_dump_regs()
133
asm ("movq %%rsp, %0" : "=a" (regs[13]));
134
asm ("movq %%rsi, %0" : "=b" (regs[14]));
135
asm ("movq %%rdi, %0" : "=c" (regs[15]));
136
- asm ("movq %%rip, %0" : "=d" (regs[16]));
+ asm ("leaq (%%rip), %0" : "=d" (regs[16]));
137
138
asm ("pushf; popq %0" : "=a" (regs[17]));
139
asm ("movq %%cr0, %0" : "=b" (regs[18]));
0 commit comments