From 75c7ffeaaa6a31bb0e435b79e938cf00e975c909 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 18 Oct 2003 23:59:58 +0000 Subject: [PATCH] Don't try to call an ipiq function with a UP build when the cpuid doesn't match, panic instead. --- sys/kern/kern_slaballoc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_slaballoc.c b/sys/kern/kern_slaballoc.c index 4bd93baa95..68bb7f7f1e 100644 --- a/sys/kern/kern_slaballoc.c +++ b/sys/kern/kern_slaballoc.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/kern_slaballoc.c,v 1.9 2003/10/18 05:48:42 dillon Exp $ + * $DragonFly: src/sys/kern/kern_slaballoc.c,v 1.10 2003/10/18 23:59:58 dillon Exp $ * * This module implements a slab allocator drop-in replacement for the * kernel malloc(). @@ -719,7 +719,11 @@ free(void *ptr, struct malloc_type *type) */ if (z->z_Cpu != gd->gd_cpuid) { *(struct malloc_type **)ptr = type; +#ifdef SMP lwkt_send_ipiq(z->z_Cpu, free_remote, ptr); +#else + panic("Corrupt SLZone"); +#endif return; } -- 2.41.0