Source-Changes-HG archive

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

[src/trunk]: src/sys/kern We would have bigger problems if PAGE_SIZE were < s...



details:   https://anonhg.NetBSD.org/src/rev/b03c0762ffb1
branches:  trunk
changeset: 971541:b03c0762ffb1
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Apr 27 05:28:17 2020 +0000

description:
We would have bigger problems if PAGE_SIZE were < sizeof(int).  Remove
a CTASSERT() that can't be evaluated at compile-time on all platforms.

diffstat:

 sys/kern/sys_futex.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r b707b60e656c -r b03c0762ffb1 sys/kern/sys_futex.c
--- a/sys/kern/sys_futex.c      Mon Apr 27 03:29:57 2020 +0000
+++ b/sys/kern/sys_futex.c      Mon Apr 27 05:28:17 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_futex.c,v 1.2 2020/04/26 21:04:46 mlelstv Exp $    */
+/*     $NetBSD: sys_futex.c,v 1.3 2020/04/27 05:28:17 thorpej Exp $    */
 
 /*-
  * Copyright (c) 2018, 2019, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.2 2020/04/26 21:04:46 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.3 2020/04/27 05:28:17 thorpej Exp $");
 
 /*
  * Futexes
@@ -676,8 +676,6 @@
        if ((va & 3) != 0)
                return EINVAL;
 
-       CTASSERT((PAGE_SIZE & 3) == 0);
-
        /* Look it up. */
        error = futex_key_init(&fk, vm, va, shared);
        if (error)
@@ -726,8 +724,6 @@
        if ((va & 3) != 0)
                return EINVAL;
 
-       CTASSERT((PAGE_SIZE & 3) == 0);
-
        error = futex_key_init(&fk, vm, va, shared);
        if (error)
                return error;



Home | Main Index | Thread Index | Old Index