From ccb6c2d7e35e3c4bf4c7ad3c153369b18c384162 Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 3 Dec 2025 11:59:18 +0000 Subject: [PATCH] The definition of PAGE_SHIFT should not be limited to defined(_KERNEL); this prevents userland from getting a valid PAGE_SIZE definition by including . Reported on bugs@ --- sys/arch/loongson/include/param.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/arch/loongson/include/param.h b/sys/arch/loongson/include/param.h index 1abefe96fa2..57f680f4eea 100644 --- a/sys/arch/loongson/include/param.h +++ b/sys/arch/loongson/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.3 2013/03/23 16:12:23 deraadt Exp $ */ +/* $OpenBSD: param.h,v 1.4 2025/12/03 11:59:18 miod Exp $ */ /* Public Domain */ @@ -13,8 +13,6 @@ #define _MACHINE_CPU mips64 #define MID_MACHINE MID_MIPS64 -#ifdef _KERNEL - /* * The Loongson level 1 cache expects software to prevent virtual * aliases. Unfortunately, since this cache is physically tagged, @@ -24,8 +22,6 @@ */ #define PAGE_SHIFT 14 -#endif /* _KERNEL */ - #include #endif /* _MACHINE_PARAM_H_ */