Artifact
96edbebd8a921f0835e6aa633ed29643641b75fc:
0000: 2f 2a 20 54 72 61 6d 70 6f 6c 69 6e 65 20 66 6f /* Trampoline fo
0010: 72 20 6d 69 70 73 20 43 50 55 20 69 6e 20 36 34 r mips CPU in 64
0020: 2d 62 69 74 20 6d 6f 64 65 20 2a 2f 0a 0a 2f 2a -bit mode */../*
0030: 0a 20 2a 20 43 6f 70 79 72 69 67 68 74 20 31 39 . * Copyright 19
0040: 39 36 20 42 72 75 6e 6f 20 48 61 69 62 6c 65 2c 96 Bruno Haible,
0050: 20 3c 62 72 75 6e 6f 40 63 6c 69 73 70 2e 6f 72 <bruno@clisp.or
0060: 67 3e 0a 20 2a 0a 20 2a 20 54 68 69 73 20 69 73 g>. *. * This is
0070: 20 66 72 65 65 20 73 6f 66 74 77 61 72 65 20 64 free software d
0080: 69 73 74 72 69 62 75 74 65 64 20 75 6e 64 65 72 istributed under
0090: 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c the GNU General
00a0: 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 63 65 0a Public Licence.
00b0: 20 2a 20 64 65 73 63 72 69 62 65 64 20 69 6e 20 * described in
00c0: 74 68 65 20 66 69 6c 65 20 43 4f 50 59 49 4e 47 the file COPYING
00d0: 2e 20 43 6f 6e 74 61 63 74 20 74 68 65 20 61 75 . Contact the au
00e0: 74 68 6f 72 20 69 66 20 79 6f 75 20 64 6f 6e 27 thor if you don'
00f0: 74 20 68 61 76 65 20 74 68 69 73 0a 20 2a 20 6f t have this. * o
0100: 72 20 63 61 6e 27 74 20 6c 69 76 65 20 77 69 74 r can't live wit
0110: 68 20 69 74 2e 20 54 68 65 72 65 20 69 73 20 41 h it. There is A
0120: 42 53 4f 4c 55 54 45 4c 59 20 4e 4f 20 57 41 52 BSOLUTELY NO WAR
0130: 52 41 4e 54 59 2c 20 65 78 70 6c 69 63 69 74 20 RANTY, explicit
0140: 6f 72 20 69 6d 70 6c 69 65 64 2c 0a 20 2a 20 6f or implied,. * o
0150: 6e 20 74 68 69 73 20 73 6f 66 74 77 61 72 65 2e n this software.
0160: 0a 20 2a 2f 0a 0a 2f 2a 20 41 76 61 69 6c 61 62 . */../* Availab
0170: 6c 65 20 72 65 67 69 73 74 65 72 73 3a 20 24 32 le registers: $2
0180: 2c 20 24 33 2e 20 2a 2f 0a 0a 09 2e 73 65 74 09 , $3. */....set.
0190: 6e 6f 62 6f 70 74 0a 09 2e 73 65 74 09 6e 6f 72 nobopt...set.nor
01a0: 65 6f 72 64 65 72 0a 09 2e 74 65 78 74 0a 09 2e eorder...text...
01b0: 67 6c 6f 62 6c 09 6d 61 69 6e 0a 09 2e 65 6e 74 globl.main...ent
01c0: 09 6d 61 69 6e 0a 6d 61 69 6e 3a 0a 09 2e 65 6e .main.main:...en
01d0: 64 09 6d 61 69 6e 0a 09 2e 67 6c 6f 62 6c 09 74 d.main...globl.t
01e0: 72 61 6d 70 0a 09 2e 65 6e 74 09 74 72 61 6d 70 ramp...ent.tramp
01f0: 0a 74 72 61 6d 70 3a 0a 23 09 64 6c 69 09 24 32 .tramp:.#.dli.$2
0200: 2c 30 78 31 32 33 34 35 36 37 38 31 33 35 37 38 ,0x1234567813578
0210: 37 36 35 0a 09 6c 75 69 09 24 32 2c 30 78 31 32 765..lui.$2,0x12
0220: 33 34 0a 09 6f 72 69 09 24 32 2c 24 32 2c 30 78 34..ori.$2,$2,0x
0230: 35 36 37 38 0a 09 64 73 6c 6c 09 24 32 2c 24 32 5678..dsll.$2,$2
0240: 2c 31 36 0a 09 6f 72 69 09 24 32 2c 24 32 2c 30 ,16..ori.$2,$2,0
0250: 78 31 33 35 37 0a 09 64 73 6c 6c 09 24 32 2c 24 x1357..dsll.$2,$
0260: 32 2c 31 36 0a 09 6f 72 69 09 24 32 2c 24 32 2c 2,16..ori.$2,$2,
0270: 30 78 38 37 36 35 0a 23 09 64 6c 69 09 24 33 2c 0x8765.#.dli.$3,
0280: 30 78 37 33 35 35 34 37 31 31 34 33 36 32 32 31 0x73554711436221
0290: 35 35 0a 09 6c 75 69 09 24 33 2c 30 78 37 33 35 55..lui.$3,0x735
02a0: 35 0a 09 6f 72 69 09 24 33 2c 24 33 2c 30 78 34 5..ori.$3,$3,0x4
02b0: 37 31 31 0a 09 64 73 6c 6c 09 24 33 2c 24 33 2c 711..dsll.$3,$3,
02c0: 31 36 0a 09 6f 72 69 09 24 33 2c 24 33 2c 30 78 16..ori.$3,$3,0x
02d0: 34 33 36 32 0a 09 64 73 6c 6c 09 24 33 2c 24 33 4362..dsll.$3,$3
02e0: 2c 31 36 0a 09 6f 72 69 09 24 33 2c 24 33 2c 30 ,16..ori.$3,$3,0
02f0: 78 32 31 35 35 0a 09 73 64 09 24 33 2c 30 28 24 x2155..sd.$3,0($
0300: 32 29 0a 23 09 64 6c 69 09 24 32 35 2c 30 78 62 2).#.dli.$25,0xb
0310: 61 62 65 62 65 63 30 64 65 61 30 66 66 61 62 0a abebec0dea0ffab.
0320: 09 6c 75 69 09 24 32 35 2c 30 78 62 61 62 65 0a .lui.$25,0xbabe.
0330: 09 6f 72 69 09 24 32 35 2c 24 32 35 2c 30 78 62 .ori.$25,$25,0xb
0340: 65 63 30 0a 09 64 73 6c 6c 09 24 32 35 2c 24 32 ec0..dsll.$25,$2
0350: 35 2c 31 36 0a 09 6f 72 69 09 24 32 35 2c 24 32 5,16..ori.$25,$2
0360: 35 2c 30 78 64 65 61 30 0a 09 64 73 6c 6c 09 24 5,0xdea0..dsll.$
0370: 32 35 2c 24 32 35 2c 31 36 0a 09 6f 72 69 09 24 25,$25,16..ori.$
0380: 32 35 2c 24 32 35 2c 30 78 66 66 61 62 0a 09 2f 25,$25,0xffab../
0390: 2a 20 54 68 65 20 63 61 6c 6c 65 64 20 66 75 6e * The called fun
03a0: 63 74 69 6f 6e 20 65 78 70 65 63 74 73 20 74 6f ction expects to
03b0: 20 73 65 65 20 69 74 73 20 6f 77 6e 20 61 64 64 see its own add
03c0: 72 65 73 73 20 69 6e 20 24 32 35 2e 20 2a 2f 0a ress in $25. */.
03d0: 09 6a 09 24 32 35 0a 09 2f 2a 20 53 6f 6d 65 20 .j.$25../* Some
03e0: 4d 69 70 73 20 68 61 72 64 77 61 72 65 20 72 75 Mips hardware ru
03f0: 6e 6e 69 6e 67 20 49 72 69 78 2d 34 2e 30 2e 35 nning Irix-4.0.5
0400: 20 6e 65 65 64 73 20 74 68 69 73 20 6e 6f 70 2e needs this nop.
0410: 20 2a 2f 0a 09 6e 6f 70 0a 09 2e 65 6e 64 09 74 */..nop...end.t
0420: 72 61 6d 70 0a ramp.