support vdso which borrows clocksource from linux
This commit is contained in:
@@ -86,6 +86,7 @@ int prepare_process_ranges_args_envs(struct thread *thread,
|
||||
struct process_vm *vm = proc->vm;
|
||||
struct address_space *as = vm->address_space;
|
||||
long aout_base;
|
||||
int error;
|
||||
|
||||
n = p->num_sections;
|
||||
|
||||
@@ -324,6 +325,14 @@ int prepare_process_ranges_args_envs(struct thread *thread,
|
||||
|
||||
dkprintf("env OK\n");
|
||||
|
||||
if (pn->enable_vdso) {
|
||||
error = arch_map_vdso(vm);
|
||||
if (error) {
|
||||
kprintf("ERROR: mapping vdso pages. %d\n", error);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
||||
p->rprocess = (unsigned long)thread;
|
||||
p->rpgtable = virt_to_phys(as->page_table);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user