1*1b73604dSskrll# $NetBSD: cpus,v 1.3 2017/06/05 18:44:13 skrll Exp $ 20a71f5feSad 30a71f5feSaddefine cpus 498483f23Sskrll set $cpu = 0 50a71f5feSad printf "\t cpu id curlwp\n" 698483f23Sskrll while ($cpu < ncpu) 7*1b73604dSskrll set $ci = cpu_infos[$cpu] 80a71f5feSad printf "%16lx %2d %16lx\n", $ci, $ci->ci_cpuid, $ci->ci_curlwp 998483f23Sskrll set $cpu++ 100a71f5feSad end 110a71f5feSadend 12