mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
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.
This commit is contained in:
parent
5b6a440bab
commit
38cc2d9316
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41318
4 changed files with 20 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue