From f303db8b57c0472ef18defdf35591edfc71865a4 Mon Sep 17 00:00:00 2001 From: miod <> Date: Mon, 7 Dec 2009 18:47:38 +0000 Subject: [PATCH] Make userland malloc use __LDPGSZ granularity on mips, regardless of the actual kernel page size. --- src/lib/libc/stdlib/malloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index b364a0c2..b3fa447c 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/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 * @@ -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