From f74250ca46c7f38852e31943dce274c8323188d8 Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Fri, 3 Aug 2001 03:31:45 +0000 Subject: Remove some code that appears to have endian problems with INVARIANTS. This is #if BIG_ENDIAN, but is only necessary if malloc types are shorts, not struct malloc_type * like they are now. --- sys/kern/kern_malloc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sys') diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 57919250dec2..e57f25074633 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -241,12 +241,7 @@ malloc(size, type, flags) #ifdef INVARIANTS freep = (struct freelist *)va; savedtype = (const char *) freep->type->ks_shortdesc; -#if BYTE_ORDER == BIG_ENDIAN - freep->type = (struct malloc_type *)WEIRD_ADDR >> 16; -#endif -#if BYTE_ORDER == LITTLE_ENDIAN freep->type = (struct malloc_type *)WEIRD_ADDR; -#endif if ((intptr_t)(void *)&freep->next & 0x2) freep->next = (caddr_t)((WEIRD_ADDR >> 16)|(WEIRD_ADDR << 16)); else -- cgit v1.3