mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 07:06:47 +00:00
🔧 防止编译器在enter_syscall中修改rcx、rdx
This commit is contained in:
parent
d3a5048f66
commit
26e0b095ed
@ -47,7 +47,7 @@ long enter_syscall(ul syscall_id, ul arg0, ul arg1, ul arg2, ul arg3, ul arg4, u
|
||||
"sysexit_return_address: \n\t"
|
||||
: "=a"(err_code)
|
||||
: "0"(syscall_id), "m"(arg0), "m"(arg1), "m"(arg2), "m"(arg3), "m"(arg4), "m"(arg5), "m"(arg6), "m"(arg7)
|
||||
: "memory", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15");
|
||||
: "memory", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", "rcx", "rdx");
|
||||
return err_code;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user