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.
This commit is contained in:
Jake Burkholder 2001-08-03 03:31:45 +00:00
parent 7cabcd9841
commit f74250ca46
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81088

View File

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