浏览代码

powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h

MAP_{NORESERVE,LOCKED} have different values on powerpc than in generic.
Szabolcs Nagy 7 年之前
父节点
当前提交
c10bc61508
共有 2 个文件被更改,包括 11 次插入1 次删除
  1. 6 1
      arch/powerpc/bits/mman.h
  2. 5 0
      arch/powerpc64/bits/mman.h

+ 6 - 1
arch/powerpc/bits/mman.h

@@ -1,4 +1,9 @@
-#define	PROT_SAO       0x10
+#define PROT_SAO       0x10
+
+#undef MAP_NORESERVE
+#define MAP_NORESERVE   0x40
+#undef MAP_LOCKED
+#define MAP_LOCKED	0x80
 
 #undef MCL_CURRENT
 #define MCL_CURRENT     0x2000

+ 5 - 0
arch/powerpc64/bits/mman.h

@@ -1,5 +1,10 @@
 #define PROT_SAO       0x10
 
+#undef MAP_NORESERVE
+#define MAP_NORESERVE   0x40
+#undef MAP_LOCKED
+#define MAP_LOCKED	0x80
+
 #undef MCL_CURRENT
 #define MCL_CURRENT     0x2000
 #undef MCL_FUTURE