Skip to content

Commit

Permalink
[MIPS] SMTC and non-SMTC kernel and modules are incompatible
Browse files Browse the repository at this point in the history
So don't allow mixing.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle authored and ralfbaechle committed Jun 26, 2007
1 parent 3207cd5 commit 2fae373
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion include/asm-mips/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 2fae373

Please sign in to comment.