From f4fb7d0eb337734a74993a68edd144165cd1a11d Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 19 Apr 2008 04:56:16 +0000 Subject: Sanitize the malloc types: M_PMAP is not used in pmap.c, so don't define it there. Don't use M_PMAP in mp_machdep.c; define M_SMP instead. --- sys/ia64/ia64/mp_machdep.c | 6 +++--- sys/ia64/ia64/pmap.c | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/ia64') diff --git a/sys/ia64/ia64/mp_machdep.c b/sys/ia64/ia64/mp_machdep.c index 3589f89..23b86fb 100644 --- a/sys/ia64/ia64/mp_machdep.c +++ b/sys/ia64/ia64/mp_machdep.c @@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$"); #include #include -MALLOC_DECLARE(M_PMAP); +MALLOC_DEFINE(M_SMP, "SMP", "SMP related allocations"); void ia64_ap_startup(void); @@ -209,7 +209,7 @@ cpu_mp_add(u_int acpiid, u_int apicid, u_int apiceid) } if (acpiid != 0) { - pc = (struct pcpu *)malloc(sizeof(*pc), M_PMAP, M_WAITOK); + pc = (struct pcpu *)malloc(sizeof(*pc), M_SMP, M_WAITOK); pcpu_init(pc, acpiid, sizeof(*pc)); } else pc = pcpup; @@ -250,7 +250,7 @@ cpu_mp_start() pc->pc_other_cpus = all_cpus & ~pc->pc_cpumask; if (pc->pc_cpuid > 0) { ap_pcpu = pc; - ap_stack = malloc(KSTACK_PAGES * PAGE_SIZE, M_PMAP, + ap_stack = malloc(KSTACK_PAGES * PAGE_SIZE, M_SMP, M_WAITOK); ap_vhpt = pmap_vhpt_base[pc->pc_cpuid]; ap_delay = 2000; diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index 4c9f280..cac6d47 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -118,8 +118,6 @@ __FBSDID("$FreeBSD$"); /* XXX move to a header. */ extern uint64_t ia64_gateway_page[]; -MALLOC_DEFINE(M_PMAP, "PMAP", "PMAP Structures"); - #ifndef PMAP_SHPGPERPROC #define PMAP_SHPGPERPROC 200 #endif -- cgit v1.1