Port to ia64, taking into account the fact that pagesizes may be variable.
This commit is contained in:
parent
fd73ce782f
commit
8e37b82334
@ -48,6 +48,11 @@
|
||||
# define malloc_pageshift 12U
|
||||
# define malloc_minsize 16U
|
||||
# endif
|
||||
# if defined(__ia64__)
|
||||
static int malloc_pageshift_value;
|
||||
# define malloc_pageshift malloc_pageshift_value
|
||||
# define malloc_minsize 16U
|
||||
# endif
|
||||
# if defined(__alpha__)
|
||||
# define malloc_pageshift 13U
|
||||
# define malloc_minsize 16U
|
||||
@ -396,6 +401,12 @@ malloc_init ()
|
||||
|
||||
INIT_MMAP();
|
||||
|
||||
#ifdef __ia64__
|
||||
malloc_pageshift = 0;
|
||||
while ((1L << malloc_pageshift) < getpagesize())
|
||||
malloc_pageshift++;
|
||||
#endif
|
||||
|
||||
#ifdef EXTRA_SANITY
|
||||
malloc_junk = 1;
|
||||
#endif /* EXTRA_SANITY */
|
||||
|
Loading…
Reference in New Issue
Block a user