Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/include * Make PAGE_SIZE et.al. constants, if...
details: https://anonhg.NetBSD.org/src/rev/2a7c5080a7ad
branches: trunk
changeset: 504348:2a7c5080a7ad
user: pk <pk%NetBSD.org@localhost>
date: Tue Feb 27 22:40:08 2001 +0000
description:
* Make PAGE_SIZE et.al. constants, if possible.
* Add pvlist pointer to `struct pmap_physseg'
* Because of the above, add guard against multiple inclusions.
diffstat:
sys/arch/sparc/include/vmparam.h | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diffs (49 lines):
diff -r 8cda3e033579 -r 2a7c5080a7ad sys/arch/sparc/include/vmparam.h
--- a/sys/arch/sparc/include/vmparam.h Tue Feb 27 22:10:27 2001 +0000
+++ b/sys/arch/sparc/include/vmparam.h Tue Feb 27 22:40:08 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.25 2000/02/11 19:30:29 thorpej Exp $ */
+/* $NetBSD: vmparam.h,v 1.26 2001/02/27 22:40:08 pk Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,10 +44,15 @@
* @(#)vmparam.h 8.1 (Berkeley) 6/11/93
*/
+#ifndef _SPARC_VMPARAM_H_
+#define _SPARC_VMPARAM_H_
+
/*
* Machine dependent constants for Sun-4c SPARC
*/
+#include <machine/param.h>
+
/*
* USRTEXT is the start of the user text/data space, while USRSTACK
* is the top (end) of the user stack.
@@ -114,9 +119,22 @@
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0
+#if !defined(_LKM)
+/*
+ * Make the VM PAGE_* macros constants, if possible.
+ */
+#if NBPG == 4096 || NBPG == 8192
+#define PAGE_SIZE NBPG
+#define PAGE_SHIFT PGSHIFT
+#define PAGE_MASK (NBPG-1)
+#endif
+#endif /* _LKM */
+
/*
* pmap specific data stored in the vm_physmem[] array
*/
+struct pvlist{};
struct pmap_physseg {
- /* NULL */
+ struct pvlist *pvhead;
};
+#endif /* _SPARC_VMPARAM_H_ */
Home |
Main Index |
Thread Index |
Old Index