瀏覽代碼

Use 4096 as Linux page size for now

Jeremy Soller 6 年之前
父節點
當前提交
51b093b598
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/platform/linux/mod.rs

+ 2 - 1
src/platform/linux/mod.rs

@@ -240,7 +240,8 @@ impl Pal for Sys {
     }
 
     fn getpagesize() -> c_int {
-        e(unsafe { syscall!(GETPAGESIZE) }) as c_int
+        //TODO
+        4096
     }
 
     fn getpgid(pid: pid_t) -> pid_t {