modify page_fault_process()
- change its argument from 'struct process *'
to 'struct process_vm *'.
- change its name from 'page_fault_process()'
to 'page_fault_process_vm()'.
- allow to resolve a fault on the process_vm of another process.
This commit is contained in:
@@ -226,7 +226,7 @@ long do_syscall(struct syscall_request *req, int cpu, int pid)
|
||||
if (res->status == STATUS_PAGE_FAULT) {
|
||||
dkprintf("STATUS_PAGE_FAULT in syscall, pid: %d\n",
|
||||
cpu_local_var(current)->ftn->pid);
|
||||
error = page_fault_process(get_cpu_local_var(cpu)->current,
|
||||
error = page_fault_process_vm(proc->vm,
|
||||
(void *)res->fault_address,
|
||||
res->fault_reason|PF_POPULATE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user