process/vm: implement access_ok()

This commit is contained in:
Dominique Martinet
2017-09-21 17:35:13 +09:00
committed by Balazs Gerofi
parent e29a40331d
commit 42bbf5f2a4
2 changed files with 36 additions and 0 deletions

View File

@@ -830,4 +830,8 @@ void proc_init();
void set_timer();
struct sig_pending *hassigpending(struct thread *thread);
#define VERIFY_READ 0
#define VERIFY_WRITE 1
int access_ok(struct process_vm *vm, int type, uintptr_t addr, size_t len);
#endif