Fix build on powerpc after previous commit.

This commit is contained in:
Alexander Motin 2023-11-09 21:21:47 -05:00
parent a03c23931e
commit f0fa40867d

View file

@ -165,7 +165,11 @@ mtrash_ctor(void *mem, int size, void *arg, int flags)
off = (uintptr_t)p - (uintptr_t)mem; off = (uintptr_t)p - (uintptr_t)mem;
ksp = (struct malloc_type **)mem; ksp = (struct malloc_type **)mem;
ksp += size / sizeof(struct malloc_type *); ksp += size / sizeof(struct malloc_type *);
if (*ksp != NULL && INKERNEL((uintptr_t)*ksp)) { if (*ksp != NULL
#ifdef INKERNEL
&& INKERNEL((uintptr_t)*ksp)
#endif
) {
/* /*
* If *ksp is corrupted we may be unable to panic clean, * If *ksp is corrupted we may be unable to panic clean,
* so print what we have reliably while we still can. * so print what we have reliably while we still can.