Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/include Bump MSGBUFSIZE (if not defined)



details:   https://anonhg.NetBSD.org/src/rev/3c89dcf7fdf2
branches:  trunk
changeset: 1020984:3c89dcf7fdf2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat May 01 07:06:54 2021 +0000

description:
Bump MSGBUFSIZE (if not defined)

Provide COHERENCY_UNIT and CACHE_LINE_SIZE

Also provide MAXCPUS

diffstat:

 sys/arch/riscv/include/param.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 28e251385f63 -r 3c89dcf7fdf2 sys/arch/riscv/include/param.h
--- a/sys/arch/riscv/include/param.h    Sat May 01 07:05:07 2021 +0000
+++ b/sys/arch/riscv/include/param.h    Sat May 01 07:06:54 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.3 2019/06/01 12:42:28 maxv Exp $ */
+/* $NetBSD: param.h,v 1.4 2021/05/01 07:06:54 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -88,6 +88,15 @@
 
 #define        MCLBYTES        (1 << MCLSHIFT) /* size of a m_buf cluster */
 
+#ifndef MSGBUFSIZE
+#define MSGBUFSIZE             65536   /* default message buffer size */
+#endif
+
+#define COHERENCY_UNIT         64
+#define CACHE_LINE_SIZE                64
+
+#define MAXCPUS                        32
+
 #ifdef _KERNEL
 void delay(unsigned long);
 #define        DELAY(x)        delay(x)



Home | Main Index | Thread Index | Old Index