process/vm: implement access_ok()

This commit is contained in:
Dominique Martinet
2017-09-21 17:35:13 +09:00
committed by Masamichi Takagi
parent a697f5e98d
commit 2db69d0f24
2 changed files with 36 additions and 0 deletions

View File

@@ -834,4 +834,8 @@ void copy_fp_regs(struct thread *from, struct thread *to);
void restore_fp_regs(struct thread *proc);
void clear_fp_regs(void);
#define VERIFY_READ 0
#define VERIFY_WRITE 1
int access_ok(struct process_vm *vm, int type, uintptr_t addr, size_t len);
#endif