mirror of
https://github.com/openbsd/src.git
synced 2025-12-06 16:23:52 +00:00
The definition of PAGE_SHIFT should not be limited to defined(_KERNEL); this
prevents userland from getting a valid PAGE_SIZE definition by including <machine/param.h>. Reported on bugs@
This commit is contained in:
@@ -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 <mips64/param.h>
|
||||
|
||||
#endif /* _MACHINE_PARAM_H_ */
|
||||
|
||||
Reference in New Issue
Block a user