Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch - expose vmparams to userland on arm, like other ar...



details:   https://anonhg.NetBSD.org/src/rev/44cc7803003b
branches:  trunk
changeset: 840200:44cc7803003b
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 27 17:15:29 2019 +0000

description:
- expose vmparams to userland on arm, like other archs do.
- remove unneeded includes

diffstat:

 sys/arch/acorn32/include/vmparam.h   |  6 +-----
 sys/arch/amiga/include/vmparam.h     |  4 +---
 sys/arch/arm/include/arm32/vmparam.h |  6 +-----
 sys/arch/atari/include/vmparam.h     |  4 +---
 sys/arch/cats/include/vmparam.h      |  6 +-----
 sys/arch/epoc32/include/vmparam.h    |  6 +-----
 sys/arch/evbarm/include/vmparam.h    |  6 +-----
 sys/arch/hpcarm/include/vmparam.h    |  6 +-----
 sys/arch/iyonix/include/vmparam.h    |  6 +-----
 sys/arch/shark/include/vmparam.h     |  6 +-----
 sys/arch/zaurus/include/vmparam.h    |  6 +-----
 11 files changed, 11 insertions(+), 51 deletions(-)

diffs (268 lines):

diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/acorn32/include/vmparam.h
--- a/sys/arch/acorn32/include/vmparam.h        Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/acorn32/include/vmparam.h        Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.27 2017/11/02 09:42:44 skrll Exp $       */
+/*     $NetBSD: vmparam.h,v 1.28 2019/03/27 17:15:29 christos Exp $    */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -32,8 +32,6 @@
 #ifndef        _ACORN32_VMPARAM_H_
 #define        _ACORN32_VMPARAM_H_
 
-#if defined(_KERNEL) || defined(_KMEMUSER)
-
 #include <arm/arm32/vmparam.h>
 
 /*
@@ -83,6 +81,4 @@
 #define        VM_FREELIST_ISADMA      1
 #define VM_FREELIST_RPCDMA     1
 
-#endif /* _KERNEL || _KMEMUSER */
-
 #endif /* _ACORN32_VMPARAM_H_ */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/amiga/include/vmparam.h
--- a/sys/arch/amiga/include/vmparam.h  Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/amiga/include/vmparam.h  Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.46 2015/09/30 20:36:28 phx Exp $ */
+/*     $NetBSD: vmparam.h,v 1.47 2019/03/27 17:15:29 christos Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -41,8 +41,6 @@
 #ifndef _MACHINE_VMPARAM_H_
 #define _MACHINE_VMPARAM_H_
 
-#include <machine/pte.h>
-
 /*
  * Machine dependent constants for amiga
  */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/arm/include/arm32/vmparam.h
--- a/sys/arch/arm/include/arm32/vmparam.h      Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/arm/include/arm32/vmparam.h      Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.42 2018/10/27 13:26:23 skrll Exp $       */
+/*     $NetBSD: vmparam.h,v 1.43 2019/03/27 17:15:29 christos Exp $    */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -38,7 +38,6 @@
 #ifndef _ARM_ARM32_VMPARAM_H_
 #define        _ARM_ARM32_VMPARAM_H_
 
-#if defined(_KERNEL) || defined(_KMEMUSER)
 
 /*
  * Virtual Memory parameters common to all arm32 platforms.
@@ -46,7 +45,6 @@
 
 #include <arm/cpuconf.h>
 #include <arm/arm32/param.h>
-#include <arm/arm32/pte.h>     /* pt_entry_t */
 
 #define        __USE_TOPDOWN_VM
 #define        USRSTACK        VM_MAXUSER_ADDRESS
@@ -99,6 +97,4 @@
 #define        VM_MIN_KERNEL_ADDRESS   ((vaddr_t) KERNEL_BASE)
 #define        VM_MAX_KERNEL_ADDRESS   ((vaddr_t) -(PAGE_SIZE+1))
 
-#endif /* _KERNEL || _KMEMUSER */
-
 #endif /* _ARM_ARM32_VMPARAM_H_ */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/atari/include/vmparam.h
--- a/sys/arch/atari/include/vmparam.h  Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/atari/include/vmparam.h  Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.32 2018/02/26 15:11:12 tsutsui Exp $     */
+/*     $NetBSD: vmparam.h,v 1.33 2019/03/27 17:15:29 christos Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -41,8 +41,6 @@
 #ifndef _MACHINE_VMPARAM_H_
 #define _MACHINE_VMPARAM_H_
 
-#include <machine/pte.h>
-
 /*
  * Machine dependent constants for atari
  */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/cats/include/vmparam.h
--- a/sys/arch/cats/include/vmparam.h   Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/cats/include/vmparam.h   Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.30 2017/11/02 09:42:44 skrll Exp $       */
+/*     $NetBSD: vmparam.h,v 1.31 2019/03/27 17:15:29 christos Exp $    */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -32,8 +32,6 @@
 #ifndef        _CATS_VMPARAM_H_
 #define        _CATS_VMPARAM_H_
 
-#if defined(_KERNEL) || defined(_KMEMUSER)
-
 #include <arm/arm32/vmparam.h>
 
 /*
@@ -81,6 +79,4 @@
 #define        VM_FREELIST_DEFAULT     0
 #define        VM_FREELIST_ISADMA      1
 
-#endif /* _KERNEL || _KMEMUSER */
-
 #endif /* _CATS_VMPARAM_H_ */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/epoc32/include/vmparam.h
--- a/sys/arch/epoc32/include/vmparam.h Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/epoc32/include/vmparam.h Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.3 2015/02/23 20:34:38 joerg Exp $        */
+/*     $NetBSD: vmparam.h,v 1.4 2019/03/27 17:15:29 christos Exp $     */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -32,8 +32,6 @@
 #ifndef        _EPOC32_VMPARAM_H_
 #define        _EPOC32_VMPARAM_H_
 
-#if defined(_KERNEL) || defined(_KMEMUSER)
-
 #include <arm/arm32/vmparam.h>
 
 /*
@@ -79,6 +77,4 @@
 #define        VM_NFREELIST            1
 #define        VM_FREELIST_DEFAULT     0
 
-#endif /* _KERNEL || _KMEMUSER */
-
 #endif /* _EPOC32_VMPARAM_H_ */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/evbarm/include/vmparam.h
--- a/sys/arch/evbarm/include/vmparam.h Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/evbarm/include/vmparam.h Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.32 2018/04/01 04:35:05 ryo Exp $ */
+/*     $NetBSD: vmparam.h,v 1.33 2019/03/27 17:15:29 christos Exp $    */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -32,8 +32,6 @@
 #ifndef        _EVBARM_VMPARAM_H_
 #define        _EVBARM_VMPARAM_H_
 
-#if defined(_KERNEL) || defined(_KMEMUSER)
-
 #ifdef __aarch64__
 
 #include <aarch64/vmparam.h>
@@ -95,6 +93,4 @@
 
 #endif
 
-#endif /* _KERNEL || _KMEMUSER */
-
 #endif /* _EVBARM_VMPARAM_H_ */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/hpcarm/include/vmparam.h
--- a/sys/arch/hpcarm/include/vmparam.h Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/hpcarm/include/vmparam.h Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.32 2017/11/02 09:42:44 skrll Exp $       */
+/*     $NetBSD: vmparam.h,v 1.33 2019/03/27 17:15:29 christos Exp $    */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -32,8 +32,6 @@
 #ifndef        _HPCARM_VMPARAM_H_
 #define        _HPCARM_VMPARAM_H_
 
-#if defined(_KERNEL) || defined(_KMEMUSER)
-
 #include <arm/arm32/vmparam.h>
 
 /*
@@ -81,6 +79,4 @@
 #define        VM_FREELIST_DEFAULT     0
 #define        VM_FREELIST_ISADMA      1
 
-#endif /* _KERNEL || _KMEMUSER */
-
 #endif /* _HPCARM_VMPARAM_H_ */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/iyonix/include/vmparam.h
--- a/sys/arch/iyonix/include/vmparam.h Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/iyonix/include/vmparam.h Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.7 2017/11/02 09:42:44 skrll Exp $        */
+/*     $NetBSD: vmparam.h,v 1.8 2019/03/27 17:15:29 christos Exp $     */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -32,8 +32,6 @@
 #ifndef        _IYONIX_VMPARAM_H_
 #define        _IYONIX_VMPARAM_H_
 
-#if defined(_KERNEL) || defined(_KMEMUSER)
-
 #include <arm/arm32/vmparam.h>
 
 /*
@@ -81,6 +79,4 @@
 #define        VM_FREELIST_DEFAULT     0
 #define        VM_FREELIST_ISADMA      1
 
-#endif /* _KERNEL || _KMEMUSER */
-
 #endif /* _IYONIX_VMPARAM_H_ */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/shark/include/vmparam.h
--- a/sys/arch/shark/include/vmparam.h  Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/shark/include/vmparam.h  Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.21 2017/11/02 09:42:45 skrll Exp $       */
+/*     $NetBSD: vmparam.h,v 1.22 2019/03/27 17:15:30 christos Exp $    */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -32,8 +32,6 @@
 #ifndef        _SHARK_VMPARAM_H_
 #define        _SHARK_VMPARAM_H_
 
-#if defined(_KERNEL) || defined(_KMEMUSER)
-
 #include <arm/arm32/vmparam.h>
 
 /*
@@ -83,6 +81,4 @@
 #define        VM_FREELIST_ISADMA      1
 #define VM_FREELIST_RPCDMA     1
 
-#endif /* _KERNEL */
-
 #endif /* _SHARK_VMPARAM_H_ */
diff -r 2b8bda73af2e -r 44cc7803003b sys/arch/zaurus/include/vmparam.h
--- a/sys/arch/zaurus/include/vmparam.h Wed Mar 27 17:02:20 2019 +0000
+++ b/sys/arch/zaurus/include/vmparam.h Wed Mar 27 17:15:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.6 2017/11/02 09:42:45 skrll Exp $        */
+/*     $NetBSD: vmparam.h,v 1.7 2019/03/27 17:15:30 christos Exp $     */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -32,8 +32,6 @@
 #ifndef        _ZAURUS_VMPARAM_H_
 #define        _ZAURUS_VMPARAM_H_
 
-#if defined(_KERNEL) || defined(_KMEMUSER)
-
 #include <arm/arm32/vmparam.h>
 
 /*
@@ -81,6 +79,4 @@
 #define        VM_FREELIST_DEFAULT     0
 #define        VM_FREELIST_ISADMA      1
 
-#endif /* _KERNEL || _KMEMUSER */
-
 #endif /* _ZAURUS_VMPARAM_H_ */



Home | Main Index | Thread Index | Old Index