Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.

Reviewed by:	kib
This commit is contained in:
Sergey Kandaurov 2011-12-18 15:36:21 +00:00
parent bb265163b2
commit 148ddfed15
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228687

View File

@ -447,7 +447,7 @@ db_findstack_cmd(db_expr_t addr, boolean_t have_addr,
return;
}
for (p = LIST_FIRST(&allproc); p != NULL; p = LIST_NEXT(p, p_list)) {
FOREACH_PROC_IN_SYSTEM(p) {
FOREACH_THREAD_IN_PROC(p, td) {
if (td->td_kstack <= saddr && saddr < td->td_kstack +
PAGE_SIZE * td->td_kstack_pages) {