summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-11-24 20:25:52 +0000
committereivind <eivind@FreeBSD.org>1998-11-24 20:25:52 +0000
commite7c29487755d8870e79c70fec98fecd11b66a98b (patch)
tree722d6dc220090745efe9a28851086d2fbef0bd2f /sys/amd64
parentd79b4eeee76e951d137c4c56dfb6b7fcdd9a2631 (diff)
downloadFreeBSD-src-e7c29487755d8870e79c70fec98fecd11b66a98b.zip
FreeBSD-src-e7c29487755d8870e79c70fec98fecd11b66a98b.tar.gz
Move the declaration of PPro_vmtrr from the header file to pmap.c,
replacing the one in the header file with a definition. This makes it easier to work with tools that grok ANSI C only.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c7
-rw-r--r--sys/amd64/include/pmap.h7
2 files changed, 10 insertions, 4 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 7dbd604..7b684bd 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
- * $Id: pmap.c,v 1.211 1998/10/28 13:36:57 dg Exp $
+ * $Id: pmap.c,v 1.212 1998/11/08 02:26:14 msmith Exp $
*/
/*
@@ -184,6 +184,11 @@ static caddr_t CADDR2;
static pt_entry_t *msgbufmap;
struct msgbuf *msgbufp=0;
+/*
+ * PPro_vmtrr
+ */
+struct ppro_vmtrr PPro_vmtrr[NPPROVMTRR];
+
#ifdef SMP
extern char prv_CPAGE1[], prv_CPAGE2[], prv_CPAGE3[];
extern pt_entry_t *prv_CMAP1, *prv_CMAP2, *prv_CMAP3;
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 25bfc62..5251be3 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -42,7 +42,7 @@
*
* from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
* from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
- * $Id: pmap.h,v 1.55 1998/05/11 01:05:59 dyson Exp $
+ * $Id: pmap.h,v 1.56 1998/06/21 14:08:27 mckay Exp $
*/
#ifndef _MACHINE_PMAP_H_
@@ -237,9 +237,10 @@ typedef struct pv_entry {
#define NPPROVMTRR 8
#define PPRO_VMTRRphysBase0 0x200
#define PPRO_VMTRRphysMask0 0x201
-struct {
+struct ppro_vmtrr {
u_int64_t base, mask;
-} PPro_vmtrr[NPPROVMTRR];
+};
+extern struct ppro_vmtrr PPro_vmtrr[NPPROVMTRR];
extern caddr_t CADDR1;
extern pt_entry_t *CMAP1;
OpenPOWER on IntegriCloud