mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 09:16:39 +07:00
f15cbe6f1a
This follows the sparc changes a439fe51a1
.
Most of the moving about was done with Sam's directions at:
http://marc.info/?l=linux-sh&m=121724823706062&w=2
with subsequent hacking and fixups entirely my fault.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
45 lines
1.0 KiB
C
45 lines
1.0 KiB
C
#ifndef _ASM_SH_MODULE_H
|
|
#define _ASM_SH_MODULE_H
|
|
|
|
/*
|
|
* This file contains the SH architecture specific module code.
|
|
*/
|
|
|
|
struct mod_arch_specific {
|
|
/* Nothing to see here .. */
|
|
};
|
|
|
|
#define Elf_Shdr Elf32_Shdr
|
|
#define Elf_Sym Elf32_Sym
|
|
#define Elf_Ehdr Elf32_Ehdr
|
|
|
|
#ifdef CONFIG_CPU_LITTLE_ENDIAN
|
|
# ifdef CONFIG_CPU_SH2
|
|
# define MODULE_PROC_FAMILY "SH2LE "
|
|
# elif defined CONFIG_CPU_SH3
|
|
# define MODULE_PROC_FAMILY "SH3LE "
|
|
# elif defined CONFIG_CPU_SH4
|
|
# define MODULE_PROC_FAMILY "SH4LE "
|
|
# elif defined CONFIG_CPU_SH5
|
|
# define MODULE_PROC_FAMILY "SH5LE "
|
|
# else
|
|
# error unknown processor family
|
|
# endif
|
|
#else
|
|
# ifdef CONFIG_CPU_SH2
|
|
# define MODULE_PROC_FAMILY "SH2BE "
|
|
# elif defined CONFIG_CPU_SH3
|
|
# define MODULE_PROC_FAMILY "SH3BE "
|
|
# elif defined CONFIG_CPU_SH4
|
|
# define MODULE_PROC_FAMILY "SH4BE "
|
|
# elif defined CONFIG_CPU_SH5
|
|
# define MODULE_PROC_FAMILY "SH5BE "
|
|
# else
|
|
# error unknown processor family
|
|
# endif
|
|
#endif
|
|
|
|
#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
|
|
|
|
#endif /* _ASM_SH_MODULE_H */
|