Fix RPC mapping the argument buffer as kernel only

This commit is contained in:
pjht 2020-08-03 08:56:56 -05:00
parent fd36ed577a
commit c081c97337

View File

@ -95,7 +95,7 @@ void* kernel_rpc_call(pid_t pid,char* name,void* buf,size_t size) {
unmap_pages(virtaddr,(size/PAGE_SZ)+1);
RUN_IN_ADDRESS_SPACE(tasking_get_address_space(pid),{
virtaddr=find_free_pages((size/PAGE_SZ)+1);
map_pages(virtaddr,physaddr,(size/PAGE_SZ)+1,0,1);
map_pages(virtaddr,physaddr,(size/PAGE_SZ)+1,1,1);
});
}
pid_t tid=tasking_new_thread(func->code,pid,virtaddr);