module.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright 2011 Tilera Corporation. All Rights Reserved.
  3. *
  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.
  7. *
  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
  12. * more details.
  13. */
  14. #ifndef _ASM_TILE_MODULE_H
  15. #define _ASM_TILE_MODULE_H
  16. #include <arch/chip.h>
  17. #include <asm-generic/module.h>
  18. /* We can't use modules built with different page sizes. */
  19. #if defined(CONFIG_PAGE_SIZE_16KB)
  20. # define MODULE_PGSZ " 16KB"
  21. #elif defined(CONFIG_PAGE_SIZE_64KB)
  22. # define MODULE_PGSZ " 64KB"
  23. #else
  24. # define MODULE_PGSZ ""
  25. #endif
  26. /* We don't really support no-SMP so tag if someone tries. */
  27. #ifdef CONFIG_SMP
  28. #define MODULE_NOSMP ""
  29. #else
  30. #define MODULE_NOSMP " nosmp"
  31. #endif
  32. #define MODULE_ARCH_VERMAGIC CHIP_ARCH_NAME MODULE_PGSZ MODULE_NOSMP
  33. #endif /* _ASM_TILE_MODULE_H */