2 * Copyright 2011 Tilera Corporation. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 * NON INFRINGEMENT. See the GNU General Public License for
15 #ifndef _ASM_TILE_MODULE_H
16 #define _ASM_TILE_MODULE_H
18 #include <arch/chip.h>
20 #include <asm-generic/module.h>
22 /* We can't use modules built with different page sizes. */
23 #if defined(CONFIG_PAGE_SIZE_16KB)
24 # define MODULE_PGSZ " 16KB"
25 #elif defined(CONFIG_PAGE_SIZE_64KB)
26 # define MODULE_PGSZ " 64KB"
28 # define MODULE_PGSZ ""
31 /* We don't really support no-SMP so tag if someone tries. */
33 #define MODULE_NOSMP ""
35 #define MODULE_NOSMP " nosmp"
38 #define MODULE_ARCH_VERMAGIC CHIP_ARCH_NAME MODULE_PGSZ MODULE_NOSMP
40 #endif /* _ASM_TILE_MODULE_H */