version 1.48, 2014/09/17 16:49:20 |
version 1.48.2.1, 2016/10/05 20:55:31 |
|
|
lw t9,4(sp); \ |
lw t9,4(sp); \ |
addiu sp,sp,8; \ |
addiu sp,sp,8; \ |
addiu t9,t9,40; \ |
addiu t9,t9,40; \ |
.set pop; |
.set pop; |
|
|
#ifdef GPROF |
#ifdef GPROF |
#define MCOUNT _KERN_MCOUNT |
#define MCOUNT _KERN_MCOUNT |
|
|
* assembler to prevent the assembler from generating 64-bit style |
* assembler to prevent the assembler from generating 64-bit style |
* ABI calls. |
* ABI calls. |
*/ |
*/ |
#if _MIPS_SZPTR == 32 |
#ifdef __mips_o32 |
#define PTR_ADD add |
#define PTR_ADD add |
#define PTR_ADDI addi |
#define PTR_ADDI addi |
#define PTR_ADDU addu |
#define PTR_ADDU addu |
|
|
#define PTR_SUBI dsubi |
#define PTR_SUBI dsubi |
#define PTR_SUBU dsubu |
#define PTR_SUBU dsubu |
#define PTR_SUBIU dsubu |
#define PTR_SUBIU dsubu |
|
#ifdef __mips_n32 |
|
#define PTR_L lw |
|
#define PTR_LL ll |
|
#define PTR_SC sc |
|
#define PTR_S sw |
|
#define PTR_SCALESHIFT 2 |
|
#define PTR_WORD .word |
|
#else |
#define PTR_L ld |
#define PTR_L ld |
#define PTR_LA dla |
#define PTR_LL lld |
|
#define PTR_SC scd |
#define PTR_S sd |
#define PTR_S sd |
|
#define PTR_SCALESHIFT 3 |
|
#define PTR_WORD .dword |
|
#endif |
|
#define PTR_LA dla |
#define PTR_SLL dsll |
#define PTR_SLL dsll |
#define PTR_SLLV dsllv |
#define PTR_SLLV dsllv |
#define PTR_SRL dsrl |
#define PTR_SRL dsrl |
#define PTR_SRLV dsrlv |
#define PTR_SRLV dsrlv |
#define PTR_SRA dsra |
#define PTR_SRA dsra |
#define PTR_SRAV dsrav |
#define PTR_SRAV dsrav |
#define PTR_LL lld |
|
#define PTR_SC scd |
|
#define PTR_WORD .dword |
|
#define PTR_SCALESHIFT 3 |
|
#endif /* _MIPS_SZPTR == 64 */ |
#endif /* _MIPS_SZPTR == 64 */ |
|
|
#if _MIPS_SZINT == 32 |
#if _MIPS_SZINT == 32 |
|
|
#define REG_SCALESHIFT 3 |
#define REG_SCALESHIFT 3 |
#endif |
#endif |
|
|
|
#if (MIPS1 + MIPS2) > 0 |
|
#define NOP_L nop |
|
#else |
|
#define NOP_L /* nothing */ |
|
#endif |
|
|
#if _MIPS_ISA == _MIPS_ISA_MIPS1 || _MIPS_ISA == _MIPS_ISA_MIPS2 || \ |
#if _MIPS_ISA == _MIPS_ISA_MIPS1 || _MIPS_ISA == _MIPS_ISA_MIPS2 || \ |
_MIPS_ISA == _MIPS_ISA_MIPS32 |
_MIPS_ISA == _MIPS_ISA_MIPS32 |
#define MFC0 mfc0 |
#define MFC0 mfc0 |