Using NULL as a malloc type when calling contigmalloc() is wrong, so introduce

a new malloc type, and use it.
This commit is contained in:
Olivier Houchard 2004-07-21 15:52:34 +00:00
parent e5ad71dd67
commit e1021dde8b

View File

@ -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