mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ 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 <= (vm_offset_t)get_pcb_td(td));
|
||||
}
|
||||
|
||||
#endif /* _SYS_PROC_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue