Index: sys/sys/param.h =================================================================== RCS file: /cvsroot/src/sys/sys/param.h,v retrieving revision 1.698 diff -u -p -r1.698 param.h --- sys/sys/param.h 19 Jul 2021 19:13:33 -0000 1.698 +++ sys/sys/param.h 21 Jul 2021 08:27:47 -0000 @@ -138,6 +138,22 @@ #define MIN(a,b) ((/*CONSTCOND*/(a)<(b))?(a):(b)) #define MAX(a,b) ((/*CONSTCOND*/(a)>(b))?(a):(b)) +/* Machine type dependent parameters. */ +#include +#include + +/* + * Coherency unit: assumed cache line size. See also MIN_LWP_ALIGNMENT. + * The MD code depends on the current values of these constants. Don't + * change them without coordinating. + */ +#ifndef COHERENCY_UNIT +#define COHERENCY_UNIT 64 +#endif +#ifndef CACHE_LINE_SIZE +#define CACHE_LINE_SIZE 64 +#endif + /* More types and definitions used throughout the kernel. */ #ifdef _KERNEL #include @@ -173,10 +189,6 @@ /* Signals. */ #include -/* Machine type dependent parameters. */ -#include -#include - #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ #define DEV_BSIZE (1 << DEV_BSHIFT) /* 512 */ @@ -200,19 +212,6 @@ #define dbtob(x) ((x) << DEV_BSHIFT) #define btodb(x) ((x) >> DEV_BSHIFT) -/* - * Coherency unit: assumed cache line size. See also MIN_LWP_ALIGNMENT. - * The MD code depends on the current values of these constants. Don't - * change them without coordinating. - */ -#ifndef COHERENCY_UNIT -#define COHERENCY_UNIT 64 -#endif -#ifndef CACHE_LINE_SIZE -#define CACHE_LINE_SIZE 64 -#endif - - #ifndef MAXCPUS #define MAXCPUS 32 #endif