trapdebug
int trapdebug = 0;
if (trapdebug) {
if (trapdebug) {
int trapdebug = 0;
struct trapdebug *t; \
t = trapdebug + TRAPSIZE * cpuid + trppos[cpuid]; \
extern struct trapdebug trapdebug[MAXCPUS * TRAPSIZE];
struct trapdebug trapdebug[MAXCPUS * TRAPSIZE];
trapdebug[TRAPSIZE * ci->ci_cpuid + (trppos[ci->ci_cpuid] == 0 ?
struct trapdebug *base, *ptrp;
base = trapdebug + ci->ci_cpuid * TRAPSIZE;