0001 #ifndef _ASM_POWERPC_ASM_COMPAT_H
0002 #define _ASM_POWERPC_ASM_COMPAT_H
0003
0004 #include <asm/asm-const.h>
0005 #include <asm/types.h>
0006 #include <asm/ppc-opcode.h>
0007
0008 #ifdef __powerpc64__
0009
0010
0011 #define PPC_LL stringify_in_c(ld)
0012 #define PPC_STL stringify_in_c(std)
0013 #define PPC_STLU stringify_in_c(stdu)
0014 #define PPC_LCMPI stringify_in_c(cmpdi)
0015 #define PPC_LCMPLI stringify_in_c(cmpldi)
0016 #define PPC_LCMP stringify_in_c(cmpd)
0017 #define PPC_LONG stringify_in_c(.8byte)
0018 #define PPC_LONG_ALIGN stringify_in_c(.balign 8)
0019 #define PPC_TLNEI stringify_in_c(tdnei)
0020 #define PPC_LLARX stringify_in_c(ldarx)
0021 #define PPC_STLCX stringify_in_c(stdcx.)
0022 #define PPC_CNTLZL stringify_in_c(cntlzd)
0023 #define PPC_MTOCRF(FXM, RS) MTOCRF((FXM), RS)
0024 #define PPC_SRL stringify_in_c(srd)
0025 #define PPC_LR_STKOFF 16
0026 #define PPC_MIN_STKFRM 112
0027
0028 #ifdef __BIG_ENDIAN__
0029 #define LHZX_BE stringify_in_c(lhzx)
0030 #define LWZX_BE stringify_in_c(lwzx)
0031 #define LDX_BE stringify_in_c(ldx)
0032 #define STWX_BE stringify_in_c(stwx)
0033 #define STDX_BE stringify_in_c(stdx)
0034 #else
0035 #define LHZX_BE stringify_in_c(lhbrx)
0036 #define LWZX_BE stringify_in_c(lwbrx)
0037 #define LDX_BE stringify_in_c(ldbrx)
0038 #define STWX_BE stringify_in_c(stwbrx)
0039 #define STDX_BE stringify_in_c(stdbrx)
0040 #endif
0041
0042 #else
0043
0044
0045 #define PPC_LL stringify_in_c(lwz)
0046 #define PPC_STL stringify_in_c(stw)
0047 #define PPC_STLU stringify_in_c(stwu)
0048 #define PPC_LCMPI stringify_in_c(cmpwi)
0049 #define PPC_LCMPLI stringify_in_c(cmplwi)
0050 #define PPC_LCMP stringify_in_c(cmpw)
0051 #define PPC_LONG stringify_in_c(.long)
0052 #define PPC_LONG_ALIGN stringify_in_c(.balign 4)
0053 #define PPC_TLNEI stringify_in_c(twnei)
0054 #define PPC_LLARX stringify_in_c(lwarx)
0055 #define PPC_STLCX stringify_in_c(stwcx.)
0056 #define PPC_CNTLZL stringify_in_c(cntlzw)
0057 #define PPC_MTOCRF stringify_in_c(mtcrf)
0058 #define PPC_SRL stringify_in_c(srw)
0059 #define PPC_LR_STKOFF 4
0060 #define PPC_MIN_STKFRM 16
0061
0062 #endif
0063
0064 #endif