modules
This commit is contained in:
@@ -39,7 +39,7 @@ void arch_syscall_stub() {
|
||||
" push r15\n"
|
||||
" xor rbp, rbp\n"
|
||||
" mov rdi, rsp\n" // SysV ABI first argument.
|
||||
" call %c4\n" // Call syscall handler.
|
||||
" call %4\n" // Call syscall handler.
|
||||
" cli\n"
|
||||
" pop r15\n"
|
||||
" pop r14\n"
|
||||
@@ -66,6 +66,6 @@ void arch_syscall_stub() {
|
||||
"i"(offsetof(struct percpu, kernel_stack)), // 1
|
||||
"i"(offsetof(struct gdt, user_code64) | CPL_USER), // 2
|
||||
"i"(offsetof(struct gdt, user_data) | CPL_USER), // 3
|
||||
"i"(syscall_dispatch) // 4
|
||||
"r"(syscall_dispatch) // 4
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user