8 static void dummy1(int x) { }
9 static void dummy0(void) { }
10 weak_alias(dummy1, __vm_lock);
11 weak_alias(dummy0, __vm_unlock);
13 #define OFF_MASK ((-0x2000ULL << (8*sizeof(long)-1)) | 0xfff)
15 void *__mmap(void *start, size_t len, int prot, int flags, int fd, off_t off)
23 if (flags & MAP_FIXED) __vm_lock(-1);
25 ret = (void *)syscall(SYS_mmap2, start, len, prot, flags, fd, off>>12);
27 ret = (void *)syscall(SYS_mmap, start, len, prot, flags, fd, off);
29 if (flags & MAP_FIXED) __vm_unlock();
33 weak_alias(__mmap, mmap);