summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-08-17 08:26:12 +0000
committerdfr <dfr@FreeBSD.org>1998-08-17 08:26:12 +0000
commit571e76475866f42be1c8965bbb5b6e04807de397 (patch)
treef50cb10f62dd1f23de5b4ce26b493b2a71cf5937 /sys/alpha
parent9892f6ef435b94e829f2e6a2d3a9c9c7471c9d06 (diff)
downloadFreeBSD-src-571e76475866f42be1c8965bbb5b6e04807de397.zip
FreeBSD-src-571e76475866f42be1c8965bbb5b6e04807de397.tar.gz
Add Miata system type and pull in the LOCATE_PCS macro from NetBSD.
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/include/rpb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/alpha/include/rpb.h b/sys/alpha/include/rpb.h
index b5d0892..cae7c08 100644
--- a/sys/alpha/include/rpb.h
+++ b/sys/alpha/include/rpb.h
@@ -73,6 +73,7 @@ struct rpb {
#define ST_EB164 26 /* EB164 (PCI/ISA) */
#define ST_DEC_1000A 27 /* "Noritake" (?) */
#define ST_DEC_ALPHAVME_224 28 /* "Cortex" (?) */
+#define ST_DEC_550 30 /* "Miata" (PCI/ISA) */
#define ST_DEC_EV56_PBP 32 /* "Takara" (?) */
#define ST_DEC_ALPHAVME_320 33 /* "Yukon" (VME?) */
@@ -202,6 +203,9 @@ struct rpb {
u_int64_t rpb_tbhint[8]; /* 149: TB hint block */
};
+#define LOCATE_PCS(h,cpunumber) ((struct pcs *) \
+ ((char *)(h) + (h)->rpb_pcs_off + ((cpunumber) * (h)->rpb_pcs_size)))
+
/*
* PCS: Per-CPU information.
*/
OpenPOWER on IntegriCloud