From 6b094090d4057f6a7d1428cef1356a4aed886a95 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Wed, 31 Oct 2001 20:43:48 +0000 Subject: [PATCH] Make the actual volatile int smp_started live *somewhere*. This is a temporary fix so that we can compile kernels. I waited 30 minutes for a response from the person who would likely know, but any longer is too long to wait with breakage at ToT. --- sys/amd64/amd64/mp_machdep.c | 2 ++ sys/amd64/amd64/mptable.c | 2 ++ sys/amd64/include/mptable.h | 2 ++ sys/i386/i386/mp_machdep.c | 2 ++ sys/i386/i386/mptable.c | 2 ++ sys/i386/include/mptable.h | 2 ++ 6 files changed, 12 insertions(+) diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index 13144b964b60..0aa621fe173d 100644 --- a/sys/amd64/amd64/mp_machdep.c +++ b/sys/amd64/amd64/mp_machdep.c @@ -291,6 +291,8 @@ struct pcb stoppcbs[MAXCPU]; int invltlb_ok = 0; /* throttle smp_invltlb() till safe */ SYSCTL_INT(_machdep, OID_AUTO, invltlb_ok, CTLFLAG_RW, &invltlb_ok, 0, ""); +volatile int smp_started; + /* * Local data and functions. */ diff --git a/sys/amd64/amd64/mptable.c b/sys/amd64/amd64/mptable.c index 13144b964b60..0aa621fe173d 100644 --- a/sys/amd64/amd64/mptable.c +++ b/sys/amd64/amd64/mptable.c @@ -291,6 +291,8 @@ struct pcb stoppcbs[MAXCPU]; int invltlb_ok = 0; /* throttle smp_invltlb() till safe */ SYSCTL_INT(_machdep, OID_AUTO, invltlb_ok, CTLFLAG_RW, &invltlb_ok, 0, ""); +volatile int smp_started; + /* * Local data and functions. */ diff --git a/sys/amd64/include/mptable.h b/sys/amd64/include/mptable.h index 13144b964b60..0aa621fe173d 100644 --- a/sys/amd64/include/mptable.h +++ b/sys/amd64/include/mptable.h @@ -291,6 +291,8 @@ struct pcb stoppcbs[MAXCPU]; int invltlb_ok = 0; /* throttle smp_invltlb() till safe */ SYSCTL_INT(_machdep, OID_AUTO, invltlb_ok, CTLFLAG_RW, &invltlb_ok, 0, ""); +volatile int smp_started; + /* * Local data and functions. */ diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c index 13144b964b60..0aa621fe173d 100644 --- a/sys/i386/i386/mp_machdep.c +++ b/sys/i386/i386/mp_machdep.c @@ -291,6 +291,8 @@ struct pcb stoppcbs[MAXCPU]; int invltlb_ok = 0; /* throttle smp_invltlb() till safe */ SYSCTL_INT(_machdep, OID_AUTO, invltlb_ok, CTLFLAG_RW, &invltlb_ok, 0, ""); +volatile int smp_started; + /* * Local data and functions. */ diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c index 13144b964b60..0aa621fe173d 100644 --- a/sys/i386/i386/mptable.c +++ b/sys/i386/i386/mptable.c @@ -291,6 +291,8 @@ struct pcb stoppcbs[MAXCPU]; int invltlb_ok = 0; /* throttle smp_invltlb() till safe */ SYSCTL_INT(_machdep, OID_AUTO, invltlb_ok, CTLFLAG_RW, &invltlb_ok, 0, ""); +volatile int smp_started; + /* * Local data and functions. */ diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h index 13144b964b60..0aa621fe173d 100644 --- a/sys/i386/include/mptable.h +++ b/sys/i386/include/mptable.h @@ -291,6 +291,8 @@ struct pcb stoppcbs[MAXCPU]; int invltlb_ok = 0; /* throttle smp_invltlb() till safe */ SYSCTL_INT(_machdep, OID_AUTO, invltlb_ok, CTLFLAG_RW, &invltlb_ok, 0, ""); +volatile int smp_started; + /* * Local data and functions. */