mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Added clobber list to inline asm
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user