summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2004-07-21 15:52:34 +0000
committercognet <cognet@FreeBSD.org>2004-07-21 15:52:34 +0000
commitdc7f443ca4848bb6f3907a9ed6548e03259a27bc (patch)
treecfda105a185e54b52cf1f80c2171476c9b3a750d /sys/i386
parentb2adbcd1d56fa984bed863d66648026adba23b72 (diff)
downloadFreeBSD-src-dc7f443ca4848bb6f3907a9ed6548e03259a27bc.zip
FreeBSD-src-dc7f443ca4848bb6f3907a9ed6548e03259a27bc.tar.gz
Using NULL as a malloc type when calling contigmalloc() is wrong, so introduce
a new malloc type, and use it.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/pmap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 5a4af6a..6ff9ede 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -433,11 +433,15 @@ pmap_set_pg(void)
}
#ifdef PAE
+
+static MALLOC_DEFINE(M_PMAPPDPT, "pmap", "pmap pdpt");
+
static void *
pmap_pdpt_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
{
*flags = UMA_SLAB_PRIV;
- return (contigmalloc(PAGE_SIZE, NULL, 0, 0x0ULL, 0xffffffffULL, 1, 0));
+ return (contigmalloc(PAGE_SIZE, M_PMAPPDPT, 0, 0x0ULL, 0xffffffffULL,
+ 1, 0));
}
#endif
OpenPOWER on IntegriCloud