]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/metag/include/asm/module.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_METAG_MODULE_H
3 #define _ASM_METAG_MODULE_H
5 #include <asm-generic/module.h>
7 struct metag_plt_entry
{
8 /* Indirect jump instruction sequence. */
9 unsigned long tramp
[2];
12 struct mod_arch_specific
{
13 /* Indices of PLT sections within module. */
14 unsigned int core_plt_section
, init_plt_section
;
17 #if defined CONFIG_METAG_META12
18 #define MODULE_PROC_FAMILY "META 1.2 "
19 #elif defined CONFIG_METAG_META21
20 #define MODULE_PROC_FAMILY "META 2.1 "
22 #define MODULE_PROC_FAMILY ""
25 #ifdef CONFIG_4KSTACKS
26 #define MODULE_STACKSIZE "4KSTACKS "
28 #define MODULE_STACKSIZE ""
31 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_STACKSIZE
34 asm(".section .plt,\"ax\",@progbits; .balign 8; .previous");
35 asm(".section .init.plt,\"ax\",@progbits; .balign 8; .previous");
38 #endif /* _ASM_METAG_MODULE_H */