ia64 pagesize patch

Jes Sorensen jes@linuxcare.com
Tue Dec 19 11:35:00 GMT 2000


Hi

In order to get rid of the call to the getpagesize system call on ia64
I'd like to apply this patch. The only question is whether it would make
more sense to default to the maximum allowable page size for the
default?

Jes

2000-12-19  Jes Sorensen  <jes@linuxcare.com>

	* sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize): Set
	default page size to 8KB for the case where AT_PAGESZ doesn't
	provide the information.

diff -urN -X /home/jes/exclude-libc /home/jes/cygnus/libc-2.2/sysdeps/unix/sysv/linux/ia64/getpagesize.c libc-2.2/sysdeps/unix/sysv/linux/ia64/getpagesize.c
--- /home/jes/cygnus/libc-2.2/sysdeps/unix/sysv/linux/ia64/getpagesize.c	Wed Jun 21 00:16:35 2000
+++ libc-2.2/sysdeps/unix/sysv/linux/ia64/getpagesize.c	Tue Dec 19 14:23:34 2000
@@ -39,7 +39,7 @@
 __getpagesize ()
 {
   if (_dl_pagesize == 0)
-    _dl_pagesize = INLINE_SYSCALL (getpagesize, 0);
+    _dl_pagesize = 8192;	/* reasonable default */
   return _dl_pagesize;
 }
 


More information about the Libc-hacker mailing list