Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm uvm: CTASSERT about MIN_PAGE_SIZE, which is constant.



details:   https://anonhg.NetBSD.org/src/rev/1851b09e2d1c
branches:  trunk
changeset: 368367:1851b09e2d1c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Jul 07 13:27:02 2022 +0000

description:
uvm: CTASSERT about MIN_PAGE_SIZE, which is constant.

diffstat:

 sys/uvm/uvm_device.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7dfc3da5a90f -r 1851b09e2d1c sys/uvm/uvm_device.c
--- a/sys/uvm/uvm_device.c      Thu Jul 07 11:29:18 2022 +0000
+++ b/sys/uvm/uvm_device.c      Thu Jul 07 13:27:02 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_device.c,v 1.79 2022/07/07 11:29:18 rin Exp $      */
+/*     $NetBSD: uvm_device.c,v 1.80 2022/07/07 13:27:02 riastradh Exp $        */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_device.c,v 1.79 2022/07/07 11:29:18 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_device.c,v 1.80 2022/07/07 13:27:02 riastradh Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -168,7 +168,7 @@
                         *
                         *      off += PAGE_SIZE - 2*(VOFF_MAX + 1).
                         */
-                       KASSERT(PAGE_SIZE >= 2);
+                       CTASSERT(MIN_PAGE_SIZE >= 2);
                        off -= __type_max(voff_t);
                        off += PAGE_SIZE - 2;
                        off -= __type_max(voff_t);



Home | Main Index | Thread Index | Old Index