Browse Source

As Joakim Tjernlund rightly notes, I should have used PAGE_SIZE
not the hard coded value of 4096.

Eric Andersen 21 years ago
parent
commit
1b7084ce1a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/misc/internals/__uClibc_main.c

+ 2 - 2
libc/misc/internals/__uClibc_main.c

@@ -139,9 +139,9 @@ __uClibc_start_main(int argc, char **argv, char **envp,
 	}
 	}
 	aux_dat += 2;
 	aux_dat += 2;
     }
     }
-    _dl_pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : 4096;
+    _dl_pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : PAGE_SIZE;
 #else
 #else
-    _dl_pagesize = 4096;
+    _dl_pagesize = PAGE_SIZE;
 #endif
 #endif
 
 
     /* If we are dynamically linked the shared lib loader already
     /* If we are dynamically linked the shared lib loader already