i386 kstack_contains(): account for pcb/fpu save area
Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D38320
This commit is contained in:
parent
2555f175b3
commit
7c567fcc56
@ -21,7 +21,7 @@ static __inline bool
|
|||||||
kstack_contains(struct thread *td, vm_offset_t va, size_t len)
|
kstack_contains(struct thread *td, vm_offset_t va, size_t len)
|
||||||
{
|
{
|
||||||
return (va >= td->td_kstack && va + len >= va &&
|
return (va >= td->td_kstack && va + len >= va &&
|
||||||
va + len <= td->td_kstack + td->td_kstack_pages * PAGE_SIZE);
|
va + len <= (vm_offset_t)get_pcb_td(td));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _SYS_PROC_H_ */
|
#endif /* _SYS_PROC_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user