summaryrefslogtreecommitdiffstats
path: root/sys/sys/msgbuf.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-02-17 11:11:10 +0000
committerbde <bde@FreeBSD.org>2004-02-17 11:11:10 +0000
commit35305fb9d42ef65b057e6eceed64fdf63aced3fc (patch)
tree1158992826913cf5a9bc8aa0b036e6ea20e549bf /sys/sys/msgbuf.h
parent196898f65ec407d1aa7730066db9b59ab5ffc7b7 (diff)
downloadFreeBSD-src-35305fb9d42ef65b057e6eceed64fdf63aced3fc.zip
FreeBSD-src-35305fb9d42ef65b057e6eceed64fdf63aced3fc.tar.gz
Backed out previous commit since it just causes panics unless a special
value for MSGBUF_SIZE is configured. MSGBUF_SIZE = (32768 * bootverbose ? 2 : 1) is always 1 or 2, so there is not enough space in the buffer for metadata, and blindly using the nonexistent space tends to cause fatal pagefaults. I think MSGBUF_SIZE = (32768 * (bootverbose ? 2 : 1)) would be always 32768 since bootverbose is only statically initialized to 0 early when MSGBUF_SIZE is used. MSGBUF_SIZE = (32768 * ((boothowto & RB_VERBOSE) ? 2 : 1)) should work, but this belongs in <sys/msgbuf.h> even less than previous versions. MSGBUF_SIZE shouldn't be a macro.
Diffstat (limited to 'sys/sys/msgbuf.h')
-rw-r--r--sys/sys/msgbuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/msgbuf.h b/sys/sys/msgbuf.h
index 7226b4e..b92ccc8 100644
--- a/sys/sys/msgbuf.h
+++ b/sys/sys/msgbuf.h
@@ -71,7 +71,7 @@ int msgbuf_peekbytes(struct msgbuf *mbp, char *buf, int buflen,
u_int *seqp);
#if !defined(MSGBUF_SIZE)
-#define MSGBUF_SIZE (32768 * bootverbose ? 2 : 1)
+#define MSGBUF_SIZE 32768
#endif
#endif
OpenPOWER on IntegriCloud