diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2013-09-11 04:16:51 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2013-09-11 04:16:51 -0700 |
commit | 00f72998242a588c2bbd050d0929d852664d97e4 (patch) | |
tree | 4019534da5c68f5a12f112cc606c005d231ce05c /pk/vm.h | |
parent | 2a0bfcd3da1a9f76cd2d0b05f59afb6533faa318 (diff) | |
download | pk-00f72998242a588c2bbd050d0929d852664d97e4.zip pk-00f72998242a588c2bbd050d0929d852664d97e4.tar.gz pk-00f72998242a588c2bbd050d0929d852664d97e4.tar.bz2 |
Add some syscalls
Diffstat (limited to 'pk/vm.h')
-rw-r--r-- | pk/vm.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -15,12 +15,15 @@ #define MAP_FIXED 0x10 #define MAP_ANONYMOUS 0x20 #define MAP_POPULATE 0x8000 +#define MREMAP_FIXED 0x2 void vm_init(); int handle_page_fault(uintptr_t vaddr, int prot); void populate_mapping(const void* start, size_t size, int prot); uintptr_t __do_mmap(uintptr_t addr, size_t length, int prot, int flags, file_t* file, off_t offset); sysret_t do_mmap(uintptr_t addr, size_t length, int prot, int flags, int fd, off_t offset); +sysret_t do_munmap(uintptr_t addr, size_t length); +sysret_t do_mremap(uintptr_t addr, size_t old_size, size_t new_size, int flags); sysret_t do_brk(uintptr_t addr); #endif |