vm: implement demand-paging via userspace services with vm-controller
This commit is contained in:
@@ -372,13 +372,8 @@ kern_status_t pmap_handle_fault(
|
||||
return KERN_FATAL_ERROR;
|
||||
}
|
||||
|
||||
unsigned long lock_flags;
|
||||
address_space_lock_irqsave(space, &lock_flags);
|
||||
kern_status_t status
|
||||
= address_space_demand_map(space, fault_addr, flags);
|
||||
address_space_unlock_irqrestore(space, lock_flags);
|
||||
|
||||
return status;
|
||||
/* this must be called with `space` unlocked. */
|
||||
return address_space_demand_map(space, fault_addr, flags);
|
||||
}
|
||||
|
||||
kern_status_t pmap_add(
|
||||
|
||||
Reference in New Issue
Block a user