소스 검색

fix broken offset argument to the mmap2 syscall on or1k

for or1k, the kernel expects the offset passed to mmap2 in units of
the 8k page size, not the standard unit of 4k used on most other
archs.
Rich Felker 10 년 전
부모
커밋
4f44937432
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      arch/or1k/syscall_arch.h

+ 2 - 0
arch/or1k/syscall_arch.h

@@ -3,6 +3,8 @@
 ((union { long long ll; long l[2]; }){ .ll = x }).l[1]
 #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
 
+#define SYSCALL_MMAP2_UNIT 8192ULL
+
 long (__syscall)(long, ...);
 
 #ifndef __clang__