]> err.no Git - linux-2.6/commitdiff
[MIPS] SMTC and non-SMTC kernel and modules are incompatible
authorRalf Baechle <ralf@mips.com>
Wed, 20 Jun 2007 13:25:27 +0000 (14:25 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 26 Jun 2007 17:57:34 +0000 (19:57 +0200)
So don't allow mixing.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/module.h

index 399d03f1c4fcf3c1f4d8049667c73a05cb2e24b4..c5ef324fd69f7a7824897a77dc7857948f0ec0d8 100644 (file)
@@ -122,6 +122,13 @@ search_module_dbetables(unsigned long addr)
 #define MODULE_KERNEL_TYPE "64BIT "
 #endif
 
-#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_KERNEL_TYPE
+#ifdef CONFIG_MIPS_MT_SMTC
+#define MODULE_KERNEL_SMTC "MT_SMTC "
+#else
+#define MODULE_KERNEL_SMTC ""
+#endif
+
+#define MODULE_ARCH_VERMAGIC \
+       MODULE_PROC_FAMILY MODULE_KERNEL_TYPE MODULE_KERNEL_SMTC
 
 #endif /* _ASM_MODULE_H */