i386 trap_check_kstack(): use kstack_contains()
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
7c567fcc56
commit
3f08bd5653
@ -205,8 +205,7 @@ trap_check_kstack(void)
|
|||||||
stk = read_esp();
|
stk = read_esp();
|
||||||
if (stk >= PMAP_TRM_MIN_ADDRESS)
|
if (stk >= PMAP_TRM_MIN_ADDRESS)
|
||||||
panic("td %p stack %#x in trampoline", td, stk);
|
panic("td %p stack %#x in trampoline", td, stk);
|
||||||
if (stk < td->td_kstack || stk >= td->td_kstack +
|
if (!kstack_contains(td, stk, 0))
|
||||||
ptoa(td->td_kstack_pages))
|
|
||||||
panic("td %p stack %#x not in kstack VA %#x %d",
|
panic("td %p stack %#x not in kstack VA %#x %d",
|
||||||
td, stk, td->td_kstack, td->td_kstack_pages);
|
td, stk, td->td_kstack, td->td_kstack_pages);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user