mirror of
https://github.com/drasko/codezero.git
synced 2026-01-16 04:43:16 +01:00
User pointer validity checks.
Added routines that check whether a user pointer is accessible by the kernel, and if not ask the pager to map-in those pages. I haven't implemented yet the bit that asks the pager for paging-in.
This commit is contained in:
@@ -18,4 +18,6 @@
|
||||
#define MAP_SVC_DEFAULT_FLAGS MAP_SVC_RW_FLAGS
|
||||
#define MAP_IO_DEFAULT_FLAGS MAP_SVC_IO_FLAGS
|
||||
|
||||
int check_access(unsigned long vaddr, unsigned long size, unsigned int flags);
|
||||
|
||||
#endif /* __SPACE_H__ */
|
||||
|
||||
Reference in New Issue
Block a user