mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
fcdfe9d22b
Add ELF-related definition and module relocation code for basic LoongArch support. Cc: Jessica Yu <jeyu@kernel.org> Reviewed-by: WANG Xuerui <git@xen0n.name> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
20 lines
430 B
C
20 lines
430 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
*/
|
|
#ifndef _ASM_VERMAGIC_H
|
|
#define _ASM_VERMAGIC_H
|
|
|
|
#define MODULE_PROC_FAMILY "LOONGARCH "
|
|
|
|
#ifdef CONFIG_32BIT
|
|
#define MODULE_KERNEL_TYPE "32BIT "
|
|
#elif defined CONFIG_64BIT
|
|
#define MODULE_KERNEL_TYPE "64BIT "
|
|
#endif
|
|
|
|
#define MODULE_ARCH_VERMAGIC \
|
|
MODULE_PROC_FAMILY MODULE_KERNEL_TYPE
|
|
|
|
#endif /* _ASM_VERMAGIC_H */
|