diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-07 18:47:39 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-07 18:47:39 +0000 |
commit | 59271974a7726bfff0ff414b78f21c3ef9624745 (patch) | |
tree | 7d94c0ddb3878091b047603b8701c299ccc20c6c /lib | |
parent | 6bfcd37f1f016756dee9e8afa2e1047ced8fd290 (diff) |
Make userland malloc use __LDPGSZ granularity on mips, regardless of the
actual kernel page size.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index b364a0c28b6..b3fa447ceb7 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.121 2009/11/27 20:11:01 otto Exp $ */ +/* $OpenBSD: malloc.c,v 1.122 2009/12/07 18:47:38 miod Exp $ */ /* * Copyright (c) 2008 Otto Moerbeek <otto@drijf.net> * @@ -53,6 +53,8 @@ #if defined(__sparc__) && !defined(__sparcv9__) #define MALLOC_PAGESHIFT (13U) +#elif defined(__mips64__) +#define MALLOC_PAGESHIFT (14U) #else #define MALLOC_PAGESHIFT (PGSHIFT) #endif |