Added clobber list to inline asm

This commit is contained in:
2025-05-07 13:26:45 +02:00
parent 024dcfffcc
commit 2cd84b5e89
+2 -1
View File
@@ -56,10 +56,11 @@ void syscall_handler(struct isr_int_frame* iframe) {
"call *%7\n"
"add $24, %%esp\n"
"mov %%eax, %0\n"
: "=a"(ret)
: "=r"(ret)
: "g"(iframe->ebp), "g"(iframe->edi), "g"(iframe->esi),
"g"(iframe->edx), "g"(iframe->ecx), "g"(iframe->ebx),
"g"(handler)
: "eax", "memory"
);
iframe->eax = ret;
}