diff options
author | jake <jake@FreeBSD.org> | 2001-08-03 03:31:45 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-08-03 03:31:45 +0000 |
commit | 258022abac2dafc927de0217edc422372b5a364b (patch) | |
tree | d37d419a30be45940159d26a2e9fd7140655bf6f | |
parent | 424df267d7c76fe41d53b31be0041cd58c2717a3 (diff) | |
download | FreeBSD-src-258022abac2dafc927de0217edc422372b5a364b.zip FreeBSD-src-258022abac2dafc927de0217edc422372b5a364b.tar.gz |
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.
-rw-r--r-- | sys/kern/kern_malloc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 5791925..e57f250 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 |