Index: sys/arch/mips/include/locore.h =================================================================== RCS file: /cvsroot/src/sys/arch/mips/include/locore.h,v retrieving revision 1.110 diff -u -p -r1.110 locore.h --- sys/arch/mips/include/locore.h 26 Jul 2020 08:08:41 -0000 1.110 +++ sys/arch/mips/include/locore.h 27 Jul 2020 08:19:40 -0000 @@ -28,7 +28,7 @@ #ifndef _MIPS_LOCORE_H #define _MIPS_LOCORE_H -#if defined(_KERNEL_OPT) +#if !defined(_MODULE) && defined(_KERNEL_OPT) #include "opt_cputype.h" #endif @@ -51,8 +51,8 @@ typedef uint32_t pt_entry_t; #ifdef _KERNEL -#if defined(_MODULAR) || defined(_STANDALONE) -/* Assume all CPU architectures are valid for LKM's and standlone progs */ +#if defined(_MODULE) || defined(_STANDALONE) +/* Assume all CPU architectures are valid for modules and standlone progs */ #if !defined(__mips_n32) && !defined(__mips_n64) #define MIPS1 1 #endif @@ -64,7 +64,7 @@ typedef uint32_t pt_entry_t; #endif #define MIPS64 1 #define MIPS64R2 1 -#endif /* _MODULAR || _STANDALONE */ +#endif /* _MODULE || _STANDALONE */ #if (MIPS1 + MIPS3 + MIPS4 + MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) == 0 #error at least one of MIPS1, MIPS3, MIPS4, MIPS32, MIPS32R2, MIPS64, or MIPS64R2 must be specified