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/alpha/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/alpha/include')
-rw-r--r-- | sys/alpha/include/globaldata.h | 1 | ||||
-rw-r--r-- | sys/alpha/include/lock.h | 2 | ||||
-rw-r--r-- | sys/alpha/include/pcpu.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/sys/alpha/include/globaldata.h b/sys/alpha/include/globaldata.h index 361ae09..5fd6c59 100644 --- a/sys/alpha/include/globaldata.h +++ b/sys/alpha/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/alpha/include/lock.h b/sys/alpha/include/lock.h index f2e3448..ebca861 100644 --- a/sys/alpha/include/lock.h +++ b/sys/alpha/include/lock.h @@ -55,6 +55,8 @@ s_unlock(struct simplelock *lkp) lkp->lock_data = 0; } +extern struct simplelock panic_lock; + #if !defined(SIMPLELOCK_DEBUG) && MAXCPU > 1 /* * This set of defines turns on the real functions in i386/isa/apic_ipl.s. diff --git a/sys/alpha/include/pcpu.h b/sys/alpha/include/pcpu.h index 361ae09..5fd6c59 100644 --- a/sys/alpha/include/pcpu.h +++ b/sys/alpha/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; |