mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
Fix build on powerpc after previous commit.
This commit is contained in:
parent
a03c23931e
commit
f0fa40867d
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue