]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/l4re-core/ldso/ldso/syscalls.cc
Update
[l4.git] / l4 / pkg / l4re-core / ldso / ldso / syscalls.cc
similarity index 99%
rename from l4/pkg/ldso/ldso/syscalls.cc
rename to l4/pkg/l4re-core/ldso/ldso/syscalls.cc
index 68b257696315c2aa3e494103d87d76590f6d47bc..c5453967857d59d1dea3588136a372630a557996 100644 (file)
@@ -160,7 +160,7 @@ L4RE_CALL(void *_dl_mmap(void *start, size_t len, int prot, int flags, int fd, o
   outhex32((int)__builtin_return_address(0)); outstring("\n");
 #endif
   void *resptr;
-  int res = L4RE_VFS->mmap2(start, len, prot, flags, fd, offset / L4_PAGESIZE, &resptr);
+  int res = L4RE_VFS->mmap2(start, len, prot, flags, fd, offset >> 12, &resptr);
   if (res >= 0)
     return resptr;
   else