CVS commit: src/sys/arch/hpcmips/include
Module Name:src Committed By: christos Date: Thu Mar 28 08:33:07 UTC 2019 Modified Files: src/sys/arch/hpcmips/include: vmparam.h Log Message: protect kernel variables To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hpcmips/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/hpcmips/include/vmparam.h diff -u src/sys/arch/hpcmips/include/vmparam.h:1.5 src/sys/arch/hpcmips/include/vmparam.h:1.6 --- src/sys/arch/hpcmips/include/vmparam.h:1.5 Sun Dec 13 19:46:04 2009 +++ src/sys/arch/hpcmips/include/vmparam.h Thu Mar 28 04:33:07 2019 @@ -1,9 +1,11 @@ -/* $NetBSD: vmparam.h,v 1.5 2009/12/14 00:46:04 matt Exp $ */ +/* $NetBSD: vmparam.h,v 1.6 2019/03/28 08:33:07 christos Exp $ */ #include +#ifdef _KERNEL #include #define VM_PHYSSEG_MAX 5 extern phys_ram_seg_t mem_clusters[]; extern int mem_cluster_cnt; +#endif
CVS commit: src/sys/arch/hpcmips/include
Module Name:src Committed By: tsutsui Date: Fri Mar 18 16:36:50 UTC 2011 Modified Files: src/sys/arch/hpcmips/include: param.h Log Message: - include mips/mips_param.h after MACHINE is defined - remove redundant comment To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/hpcmips/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/hpcmips/include/param.h diff -u src/sys/arch/hpcmips/include/param.h:1.15 src/sys/arch/hpcmips/include/param.h:1.16 --- src/sys/arch/hpcmips/include/param.h:1.15 Tue Feb 8 20:20:15 2011 +++ src/sys/arch/hpcmips/include/param.h Fri Mar 18 16:36:50 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.15 2011/02/08 20:20:15 rmind Exp $ */ +/* $NetBSD: param.h,v 1.16 2011/03/18 16:36:50 tsutsui Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -38,15 +38,9 @@ * @(#)param.h 8.1 (Berkeley) 6/10/93 */ -/* - * Machine-dependent constants (VM, etc) common across MIPS cpus - */ - #ifndef _HPCMIPS_PARAM_H_ #define _HPCMIPS_PARAM_H_ -#include mips/mips_param.h - /* * Machine dependent constants for mips-based Handheld PC. */ @@ -54,6 +48,8 @@ #define _MACHINE hpcmips #define MACHINE hpcmips +#include mips/mips_param.h + #define KERNBASE 0x8000 /* start of kernel virtual */ #define KERNTEXTOFF 0x80001000 /* start of kernel text for kvm_mkdb */ #define BTOPKERNBASE ((u_long)KERNBASE PGSHIFT)
CVS commit: src/sys/arch/hpcmips/include
Module Name:src Committed By: tsutsui Date: Wed Mar 16 13:08:22 UTC 2011 Modified Files: src/sys/arch/hpcmips/include: kloader.h Log Message: Put awful kludge to make MI kloader.c link on hpcmips. XXX: sys/dev/kloader.c should not refer avail_start and avail_end To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/hpcmips/include/kloader.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/hpcmips/include/kloader.h diff -u src/sys/arch/hpcmips/include/kloader.h:1.4 src/sys/arch/hpcmips/include/kloader.h:1.5 --- src/sys/arch/hpcmips/include/kloader.h:1.4 Mon Apr 28 20:23:21 2008 +++ src/sys/arch/hpcmips/include/kloader.h Wed Mar 16 13:08:22 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: kloader.h,v 1.4 2008/04/28 20:23:21 martin Exp $ */ +/* $NetBSD: kloader.h,v 1.5 2011/03/16 13:08:22 tsutsui Exp $ */ /*- * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc. @@ -30,4 +30,6 @@ #define PG_VADDR(pg) MIPS_PHYS_TO_KSEG0(VM_PAGE_TO_PHYS(pg)) - +/* XXX: kludge: MI kloader.c assumes avail_start and avail_end are common */ +#define avail_start mips_avail_start +#define avail_end mips_avail_end
CVS commit: src/sys/arch/hpcmips/include
Module Name:src Committed By: tsutsui Date: Sat Feb 26 12:04:25 UTC 2011 Modified Files: src/sys/arch/hpcmips/include: bus_types.h Log Message: No need to include mips/locore.h here. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/hpcmips/include/bus_types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/hpcmips/include/bus_types.h diff -u src/sys/arch/hpcmips/include/bus_types.h:1.1 src/sys/arch/hpcmips/include/bus_types.h:1.2 --- src/sys/arch/hpcmips/include/bus_types.h:1.1 Sun Nov 18 08:19:40 2001 +++ src/sys/arch/hpcmips/include/bus_types.h Sat Feb 26 12:04:25 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: bus_types.h,v 1.1 2001/11/18 08:19:40 takemura Exp $ */ +/* $NetBSD: bus_types.h,v 1.2 2011/02/26 12:04:25 tsutsui Exp $ */ /*- * Copyright (c) 2001 TAKEMRUA Shin. All rights reserved. @@ -32,8 +32,6 @@ #ifndef _HPCMIPS_BUS_TYPES_H_ #define _HPCMIPS_BUS_TYPES_H_ -#include mips/locore.h - #define __BUS_SPACE_HAS_STREAM_METHODS typedef u_long bus_addr_t;