fix REQ-42

This commit is contained in:
Tomoki Shirasawa
2016-03-24 19:14:50 +09:00
parent 932a287437
commit 4a0682bbc1
2 changed files with 18 additions and 11 deletions

View File

@@ -1208,6 +1208,18 @@ set_signal(int sig, void *regs0, siginfo_t *info)
do_kill(thread, thread->proc->pid, thread->tid, sig, info, 0);
}
int
arch_range_check(unsigned long addr)
{
struct thread *thread = cpu_local_var(current);
struct vm_regions *region = &thread->vm->region;
if(addr < region->user_start ||
addr > region->user_end)
return -EINVAL;
return 0;
}
SYSCALL_DECLARE(mmap)
{
const int supported_flags = 0