mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 18:46:45 +07:00
a697dc934f
After cleaning up m68k_ksyms_no.c it is now strait forward to merge the non-mmu and mmu versions of m68k_ksyms.c. The need for the extra gcc functions is not strictly based on having an MMU or not. It is based on the family the processor belongs too, so use an appropriate conditional check. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
#include <linux/module.h>
|
|
|
|
asmlinkage long long __ashldi3 (long long, int);
|
|
asmlinkage long long __ashrdi3 (long long, int);
|
|
asmlinkage long long __lshrdi3 (long long, int);
|
|
asmlinkage long long __muldi3 (long long, long long);
|
|
|
|
/* The following are special because they're not called
|
|
explicitly (the C compiler generates them). Fortunately,
|
|
their interface isn't gonna change any time soon now, so
|
|
it's OK to leave it out of version control. */
|
|
EXPORT_SYMBOL(__ashldi3);
|
|
EXPORT_SYMBOL(__ashrdi3);
|
|
EXPORT_SYMBOL(__lshrdi3);
|
|
EXPORT_SYMBOL(__muldi3);
|
|
|
|
#if !defined(__mc68020__) && !defined(__mc68030__) && \
|
|
!defined(__mc68040__) && !defined(__mc68060__) && !defined(__mcpu32__)
|
|
/*
|
|
* Simpler 68k and ColdFire parts also need a few other gcc functions.
|
|
*/
|
|
extern long long __divsi3(long long, long long);
|
|
extern long long __modsi3(long long, long long);
|
|
extern long long __mulsi3(long long, long long);
|
|
extern long long __udivsi3(long long, long long);
|
|
extern long long __umodsi3(long long, long long);
|
|
|
|
EXPORT_SYMBOL(__divsi3);
|
|
EXPORT_SYMBOL(__modsi3);
|
|
EXPORT_SYMBOL(__mulsi3);
|
|
EXPORT_SYMBOL(__udivsi3);
|
|
EXPORT_SYMBOL(__umodsi3);
|
|
#endif
|