Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/include Move the UBC defaults into vmparam.h



details:   https://anonhg.NetBSD.org/src/rev/889a9b407a5d
branches:  trunk
changeset: 848256:889a9b407a5d
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Jan 22 16:52:46 2020 +0000

description:
Move the UBC defaults into vmparam.h

diffstat:

 sys/arch/amd64/include/param.h   |  13 +------------
 sys/arch/amd64/include/vmparam.h |  13 ++++++++++++-
 2 files changed, 13 insertions(+), 13 deletions(-)

diffs (54 lines):

diff -r 6a1a7255b18f -r 889a9b407a5d sys/arch/amd64/include/param.h
--- a/sys/arch/amd64/include/param.h    Wed Jan 22 16:07:40 2020 +0000
+++ b/sys/arch/amd64/include/param.h    Wed Jan 22 16:52:46 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.34 2020/01/17 21:14:16 ad Exp $    */
+/*     $NetBSD: param.h,v 1.35 2020/01/22 16:52:46 ad Exp $    */
 
 #ifdef __x86_64__
 
@@ -113,17 +113,6 @@
 #define        NKMEMPAGES_MAX_UNLIMITED 1
 
 /*
- * Defaults for Unified Buffer Cache parameters.
- */
-
-#ifndef UBC_WINSHIFT
-#define        UBC_WINSHIFT    16      /* 64kB */
-#endif
-#ifndef UBC_NWINS
-#define        UBC_NWINS       4096    /* 256MB */
-#endif
-
-/*
  * XXXfvdl the PD* stuff is different from i386.
  */
 /*
diff -r 6a1a7255b18f -r 889a9b407a5d sys/arch/amd64/include/vmparam.h
--- a/sys/arch/amd64/include/vmparam.h  Wed Jan 22 16:07:40 2020 +0000
+++ b/sys/arch/amd64/include/vmparam.h  Wed Jan 22 16:52:46 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.51 2019/02/11 14:59:32 cherry Exp $      */
+/*     $NetBSD: vmparam.h,v 1.52 2020/01/22 16:52:46 ad Exp $  */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -63,6 +63,17 @@
 #define        PAGER_MAP_DEFAULT_SIZE (512 * 1024 * 1024)
 
 /*
+ * Defaults for Unified Buffer Cache parameters.
+ */
+
+#ifndef UBC_WINSHIFT
+#define        UBC_WINSHIFT    16      /* 64kB */
+#endif
+#ifndef UBC_NWINS
+#define        UBC_NWINS       4096    /* 256MB */
+#endif
+
+/*
  * USRSTACK is the top (end) of the user stack. Immediately above the
  * user stack resides the user structure, which is UPAGES long and contains
  * the kernel stack.



Home | Main Index | Thread Index | Old Index