Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nvmm Add CTASSERT.
details: https://anonhg.NetBSD.org/src/rev/f6649ff660b2
branches: trunk
changeset: 936838:f6649ff660b2
user: maxv <maxv%NetBSD.org@localhost>
date: Wed Aug 05 16:36:33 2020 +0000
description:
Add CTASSERT.
diffstat:
sys/dev/nvmm/nvmm.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 094c5060c921 -r f6649ff660b2 sys/dev/nvmm/nvmm.h
--- a/sys/dev/nvmm/nvmm.h Wed Aug 05 15:48:09 2020 +0000
+++ b/sys/dev/nvmm/nvmm.h Wed Aug 05 16:36:33 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvmm.h,v 1.13 2020/08/01 08:18:36 maxv Exp $ */
+/* $NetBSD: nvmm.h,v 1.14 2020/08/05 16:36:33 maxv Exp $ */
/*
* Copyright (c) 2018-2020 The NetBSD Foundation, Inc.
@@ -96,4 +96,9 @@
#define NVMM_COMM_CPUID(off) \
((off >> 12) & 0xFF)
+#ifdef _KERNEL
+/* At most one page, for the NVMM_COMM_* macros. */
+CTASSERT(sizeof(struct nvmm_comm_page) <= PAGE_SIZE);
#endif
+
+#endif
Home |
Main Index |
Thread Index |
Old Index