Remove declartions of physmem
This commit is contained in:
parent
497c94cc1d
commit
a971ba5943
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.124 2011/07/01 19:28:00 dyoung Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.125 2012/07/28 19:08:22 matt Exp $ */
|
||||
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
|
||||
|
||||
/*
|
||||
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.124 2011/07/01 19:28:00 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.125 2012/07/28 19:08:22 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_ddbparam.h"
|
||||
@ -128,7 +128,6 @@ struct cpu_info cpu_info_store;
|
||||
struct vm_map *phys_map = NULL;
|
||||
|
||||
int maxmem; /* max memory per process */
|
||||
int physmem; /* max supported memory, changes to actual */
|
||||
int cpuspeed = 150; /* approx CPU clock [MHz] */
|
||||
vsize_t kseg2iobufsize = 0; /* to reserve PTEs for KSEG2 I/O space */
|
||||
struct arc_bus_space arc_bus_io;/* Bus tag for bus.h macros */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.112 2011/07/09 16:09:01 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.113 2012/07/28 19:08:22 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Izumi Tsutsui. All rights reserved.
|
||||
@ -50,7 +50,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.112 2011/07/09 16:09:01 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.113 2012/07/28 19:08:22 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -99,7 +99,6 @@ struct cpu_info cpu_info_store;
|
||||
/* Maps for VM objects. */
|
||||
struct vm_map *phys_map = NULL;
|
||||
|
||||
int physmem; /* Total physical memory */
|
||||
void *bootinfo = NULL; /* pointer to bootinfo structure */
|
||||
|
||||
char bootstring[512]; /* Boot command */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: marvell_machdep.c,v 1.9 2012/07/18 10:28:47 kiyohara Exp $ */
|
||||
/* $NetBSD: marvell_machdep.c,v 1.10 2012/07/28 19:08:22 matt Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2007, 2008, 2010 KIYOHARA Takashi
|
||||
* All rights reserved.
|
||||
@ -25,7 +25,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: marvell_machdep.c,v 1.9 2012/07/18 10:28:47 kiyohara Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: marvell_machdep.c,v 1.10 2012/07/28 19:08:22 matt Exp $");
|
||||
|
||||
#include "opt_evbarm_boardtype.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -112,7 +112,6 @@ vm_offset_t physical_freestart;
|
||||
vm_offset_t physical_freeend;
|
||||
vm_offset_t physical_end;
|
||||
u_int free_pages;
|
||||
int physmem = 0;
|
||||
|
||||
/* Physical and virtual addresses for some global pages */
|
||||
pv_addr_t systempage;
|
||||
|
@ -131,7 +131,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mini2440_machdep.c,v 1.2 2012/02/03 00:33:08 nisimura Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mini2440_machdep.c,v 1.3 2012/07/28 19:08:23 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -237,7 +237,6 @@ vm_offset_t physical_freeend_low;
|
||||
vm_offset_t physical_end;
|
||||
u_int free_pages;
|
||||
vm_offset_t pagetables_start;
|
||||
int physmem = 0;
|
||||
|
||||
/*int debug_flags;*/
|
||||
#ifndef PMAP_STATIC_L1S
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rpi_machdep.c,v 1.1 2012/07/26 06:21:57 skrll Exp $ */
|
||||
/* $NetBSD: rpi_machdep.c,v 1.2 2012/07/28 19:08:23 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002, 2003, 2005 Genetec Corporation. All rights reserved.
|
||||
@ -122,7 +122,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.1 2012/07/26 06:21:57 skrll Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.2 2012/07/28 19:08:23 matt Exp $");
|
||||
|
||||
#include "opt_evbarm_boardtype.h"
|
||||
#include "opt_broadcom.h"
|
||||
@ -183,7 +183,6 @@ vm_offset_t physical_freestart;
|
||||
vm_offset_t physical_freeend;
|
||||
vm_offset_t physical_end;
|
||||
u_int free_pages;
|
||||
int physmem = 0;
|
||||
|
||||
/* Physical and virtual addresses for some global pages */
|
||||
pv_addr_t systempage;
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* $NetBSD: intr.h,v 1.4 2005/12/11 12:17:12 christos Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.5 2012/07/28 19:08:23 matt Exp $ */
|
||||
|
||||
#ifdef PPC_INTR_IMPL
|
||||
#include PPC_INTR_IMPL
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.114 2012/06/08 07:53:41 dsl Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.115 2012/07/28 19:08:23 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -58,7 +58,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.114 2012/06/08 07:53:41 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.115 2012/07/28 19:08:23 matt Exp $");
|
||||
|
||||
#include "opt_cputype.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -240,7 +240,6 @@ int (*cpu_ibtlb_ins)(int, pa_space_t, vaddr_t, paddr_t, vsize_t, u_int);
|
||||
int (*cpu_dbtlb_ins)(int, pa_space_t, vaddr_t, paddr_t, vsize_t, u_int);
|
||||
|
||||
dev_t bootdev;
|
||||
int physmem; /* # pages supported by pmap */
|
||||
int totalphysmem; /* # pages in system */
|
||||
int availphysmem; /* # pages available to kernel */
|
||||
int esym;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.114 2011/02/20 07:58:14 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.115 2012/07/28 19:08:23 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 Shin Takemura, All rights reserved.
|
||||
@ -69,7 +69,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.114 2011/02/20 07:58:14 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.115 2012/07/28 19:08:23 matt Exp $");
|
||||
|
||||
#include "opt_vr41xx.h"
|
||||
#include "opt_tx39xx.h"
|
||||
@ -181,7 +181,6 @@ static char kernel_path[] = KLOADER_KERNEL_PATH;
|
||||
struct vm_map *phys_map;
|
||||
|
||||
/* physical memory */
|
||||
int physmem; /* max supported memory, changes to actual */
|
||||
int mem_cluster_cnt;
|
||||
phys_ram_seg_t mem_clusters[VM_PHYSSEG_MAX];
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.31 2012/02/19 21:06:12 rmind Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.32 2012/07/28 19:08:24 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003,2004 Marcel Moolenaar
|
||||
@ -133,7 +133,6 @@ vsize_t ia64_unwindtablen;
|
||||
struct vm_map *phys_map = NULL;
|
||||
|
||||
void *msgbufaddr;
|
||||
int physmem;
|
||||
|
||||
vaddr_t kernstart, kernend;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.91 2012/07/28 17:33:53 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.92 2012/07/28 19:08:24 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.91 2012/07/28 17:33:53 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.92 2012/07/28 19:08:24 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -103,7 +103,6 @@ struct cpu_info cpu_info_store;
|
||||
struct vm_map *phys_map = NULL;
|
||||
|
||||
int maxmem; /* max memory per process */
|
||||
int physmem; /* set by locore */
|
||||
|
||||
extern u_int lowram;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.74 2011/02/20 07:56:16 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.75 2012/07/28 19:08:24 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.74 2011/02/20 07:56:16 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.75 2012/07/28 19:08:24 matt Exp $");
|
||||
|
||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||
|
||||
@ -106,7 +106,6 @@ struct cpu_info cpu_info_store;
|
||||
|
||||
struct vm_map *phys_map = NULL;
|
||||
|
||||
int physmem; /* max supported memory, changes to actual */
|
||||
char *bootinfo = NULL; /* pointer to bootinfo structure */
|
||||
|
||||
phys_ram_seg_t mem_clusters[VM_PHYSSEG_MAX];
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.151 2012/07/27 05:36:11 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.152 2012/07/28 19:08:24 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.151 2012/07/27 05:36:11 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.152 2012/07/28 19:08:24 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_m060sp.h"
|
||||
@ -124,7 +124,6 @@ struct mvmeprom_brdid boardid;
|
||||
paddr_t msgbufpa; /* PA of message buffer */
|
||||
|
||||
int maxmem; /* max memory per process */
|
||||
int physmem; /* size of physical memory */
|
||||
|
||||
/*
|
||||
* The driver for the ethernet chip appropriate to the
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.107 2012/07/27 05:36:11 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.108 2012/07/28 19:08:24 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Darrin B. Jewell
|
||||
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.107 2012/07/27 05:36:11 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.108 2012/07/28 19:08:24 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -130,7 +130,6 @@ struct vm_map *phys_map = NULL;
|
||||
paddr_t msgbufpa; /* PA of message buffer */
|
||||
|
||||
int maxmem; /* max memory per process */
|
||||
int physmem; /* size of physical memory */
|
||||
|
||||
extern u_int lowram;
|
||||
extern short exframesize[];
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.50 2011/07/09 16:59:40 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.51 2012/07/28 19:08:25 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2000, 2001
|
||||
@ -58,7 +58,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.50 2011/07/09 16:59:40 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.51 2012/07/28 19:08:25 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_execfmt.h"
|
||||
@ -130,8 +130,6 @@ struct cpu_info cpu_info_store;
|
||||
/* Maps for VM objects. */
|
||||
struct vm_map *phys_map = NULL;
|
||||
|
||||
int physmem; /* Total physical memory */
|
||||
|
||||
char bootstring[512]; /* Boot command */
|
||||
int netboot; /* Are we netbooting? */
|
||||
int cfe_present;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.320 2012/07/27 05:36:12 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.321 2012/07/28 19:08:25 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -71,7 +71,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.320 2012/07/27 05:36:12 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.321 2012/07/28 19:08:25 matt Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_compat_sunos.h"
|
||||
@ -141,8 +141,6 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.320 2012/07/27 05:36:12 matt Exp $");
|
||||
|
||||
extern paddr_t avail_end;
|
||||
|
||||
int physmem;
|
||||
|
||||
kmutex_t fpu_mtx;
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.268 2012/07/27 05:36:12 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.269 2012/07/28 19:08:25 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -71,7 +71,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.268 2012/07/27 05:36:12 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.269 2012/07/28 19:08:25 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
@ -157,8 +157,6 @@ static struct vm_map module_map_store;
|
||||
extern struct vm_map *module_map;
|
||||
#endif
|
||||
|
||||
int physmem;
|
||||
|
||||
extern void *msgbufaddr;
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.73 2012/07/27 05:36:12 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.74 2012/07/28 19:08:25 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -149,7 +149,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.73 2012/07/27 05:36:12 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.74 2012/07/28 19:08:25 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -234,7 +234,6 @@ struct cpu_info cpu_info_store;
|
||||
|
||||
struct vm_map *phys_map = NULL;
|
||||
|
||||
int physmem;
|
||||
int fputype;
|
||||
void * msgbufaddr;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.205 2012/07/27 05:36:12 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.206 2012/07/28 19:08:25 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -78,7 +78,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.205 2012/07/27 05:36:12 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.206 2012/07/28 19:08:25 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -152,7 +152,6 @@ struct cpu_info cpu_info_store;
|
||||
|
||||
struct vm_map *phys_map = NULL;
|
||||
|
||||
int physmem;
|
||||
int fputype;
|
||||
void * msgbufaddr;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.132 2012/07/27 05:36:12 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.133 2012/07/28 19:08:26 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.132 2012/07/27 05:36:12 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.133 2012/07/28 19:08:26 matt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -112,7 +112,6 @@ struct cpu_info cpu_info_store;
|
||||
|
||||
struct vm_map *phys_map = NULL;
|
||||
|
||||
int physmem;
|
||||
int fputype;
|
||||
void * msgbufaddr;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.104 2012/07/24 13:59:26 reinoud Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.105 2012/07/28 19:08:26 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011 Reinoud Zandijk <reinoud@NetBSD.org>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.104 2012/07/24 13:59:26 reinoud Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.105 2012/07/28 19:08:26 matt Exp $");
|
||||
|
||||
#include "opt_memsize.h"
|
||||
#include "opt_kmempages.h"
|
||||
@ -120,7 +120,6 @@ vaddr_t kmem_user_start, kmem_user_end;
|
||||
vaddr_t kmem_kvm_cur_start, kmem_kvm_cur_end;
|
||||
|
||||
/* amount of physical memory */
|
||||
int physmem;
|
||||
int num_pv_entries = 0;
|
||||
int num_pmaps = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user