aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2023-01-31 23:49:54 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2023-02-01 22:59:27 +0000
commit83a49712afa276b7f320e0dd669c8dfd33f9a5ac (patch)
treea0d4dae5b8c076bbc65c8b3f5d3b1d58efd4e8b6 /sys/powerpc/include
parent3f08bd565341dabe22884051014d1e981b433768 (diff)
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/stack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/powerpc/include/stack.h b/sys/powerpc/include/stack.h
index 953afd6f0aa4..53ea0fc3bc54 100644
--- a/sys/powerpc/include/stack.h
+++ b/sys/powerpc/include/stack.h
@@ -48,7 +48,8 @@ static __inline bool
kstack_contains(struct thread *td, vm_offset_t va, size_t len)
{
return (va >= td->td_kstack && va + len >= va &&
- va + len <= td->td_kstack + td->td_kstack_pages * PAGE_SIZE);
+ va + len <= td->td_kstack + td->td_kstack_pages * PAGE_SIZE -
+ sizeof(struct pcb));
}
#endif /* _SYS_PROC_H_ */