diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-12-09 20:52:42 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-12-09 20:52:42 +0000 |
commit | 036f9ff7a38924156d49446169ee70fc48bc54b6 (patch) | |
tree | 2ade71cd568c0ac76572f65a857432b8c1e81c48 /sys/powerpc/include | |
parent | 31a5760aa216950ac801c484069ce13595dfdae9 (diff) | |
download | FreeBSD-src-036f9ff7a38924156d49446169ee70fc48bc54b6.zip FreeBSD-src-036f9ff7a38924156d49446169ee70fc48bc54b6.tar.gz |
Store in globaldata our CPU ID#. Provide a lock for panics - only one
CPU can panic at a time.
Obtained from:Andrew Gallatin <gallatin@cs.duke.edu>
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r-- | sys/powerpc/include/globaldata.h | 1 | ||||
-rw-r--r-- | sys/powerpc/include/pcpu.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/powerpc/include/globaldata.h b/sys/powerpc/include/globaldata.h index 361ae09..5fd6c59 100644 --- a/sys/powerpc/include/globaldata.h +++ b/sys/powerpc/include/globaldata.h @@ -62,6 +62,7 @@ struct globaldata { u_int gd_astpending; SLIST_ENTRY(globaldata) gd_allcpu; int gd_witness_spin_check; + u_int gd_cpuid; #ifdef KTR_PERCPU volatile int gd_ktr_idx; /* Index into trace table */ char *gd_ktr_buf; diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h index 361ae09..5fd6c59 100644 --- a/sys/powerpc/include/pcpu.h +++ b/sys/powerpc/include/pcpu.h @@ -62,6 +62,7 @@ struct globaldata { u_int gd_astpending; SLIST_ENTRY(globaldata) gd_allcpu; int gd_witness_spin_check; + u_int gd_cpuid; #ifdef KTR_PERCPU volatile int gd_ktr_idx; /* Index into trace table */ char *gd_ktr_buf; |