summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-09-03 22:58:05 +0000
committerjake <jake@FreeBSD.org>2001-09-03 22:58:05 +0000
commitc0bffaa6e111e79b79a42d0c82157d0bef4beade (patch)
tree0654f64654414881398e03e55b55967975101438 /sys
parente6fc6fd6cdf1eed8ba1102758d7957a82d75b37f (diff)
downloadFreeBSD-src-c0bffaa6e111e79b79a42d0c82157d0bef4beade.zip
FreeBSD-src-c0bffaa6e111e79b79a42d0c82157d0bef4beade.tar.gz
Move the alternate global register stack to struct globaldata.
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/include/globaldata.h6
-rw-r--r--sys/sparc64/include/pcpu.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/sparc64/include/globaldata.h b/sys/sparc64/include/globaldata.h
index e13cbe3..69a7ab2 100644
--- a/sys/sparc64/include/globaldata.h
+++ b/sys/sparc64/include/globaldata.h
@@ -23,6 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * from: FreeBSD: src/sys/i386/include/globaldata.h,v 1.27 2001/04/27
* $FreeBSD$
*/
@@ -33,6 +34,8 @@
#include <sys/queue.h>
+#define ALT_STACK_SIZE 128
+
/*
* This structure maps out the global data that needs to be kept on a
* per-cpu basis. genassym uses this to generate offsets for the assembler
@@ -60,6 +63,9 @@ struct globaldata {
struct intr_queue *gd_iq;
struct intr_vector *gd_ivt;
+ /* Alternate global stack */
+ u_long gd_alt_stack[ALT_STACK_SIZE];
+
/* Watch point support. */
u_int gd_wp_insn;
u_long gd_wp_pstate;
diff --git a/sys/sparc64/include/pcpu.h b/sys/sparc64/include/pcpu.h
index e13cbe3..69a7ab2 100644
--- a/sys/sparc64/include/pcpu.h
+++ b/sys/sparc64/include/pcpu.h
@@ -23,6 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * from: FreeBSD: src/sys/i386/include/globaldata.h,v 1.27 2001/04/27
* $FreeBSD$
*/
@@ -33,6 +34,8 @@
#include <sys/queue.h>
+#define ALT_STACK_SIZE 128
+
/*
* This structure maps out the global data that needs to be kept on a
* per-cpu basis. genassym uses this to generate offsets for the assembler
@@ -60,6 +63,9 @@ struct globaldata {
struct intr_queue *gd_iq;
struct intr_vector *gd_ivt;
+ /* Alternate global stack */
+ u_long gd_alt_stack[ALT_STACK_SIZE];
+
/* Watch point support. */
u_int gd_wp_insn;
u_long gd_wp_pstate;
OpenPOWER on IntegriCloud