Artifact
f80f8f910f6c2e3363fb6dde0f112bb81d8f2a9e:
0000: 2f 2a 20 54 72 61 6d 70 6f 6c 69 6e 65 20 66 6f /* Trampoline fo
0010: 72 20 70 6f 77 65 72 70 63 20 43 50 55 20 77 69 r powerpc CPU wi
0020: 74 68 20 53 79 73 56 2e 34 20 41 42 49 20 2a 2f th SysV.4 ABI */
0030: 0a 0a 2f 2a 0a 20 2a 20 43 6f 70 79 72 69 67 68 ../*. * Copyrigh
0040: 74 20 31 39 39 35 2d 32 30 30 36 20 42 72 75 6e t 1995-2006 Brun
0050: 6f 20 48 61 69 62 6c 65 2c 20 3c 62 72 75 6e 6f o Haible, <bruno
0060: 40 63 6c 69 73 70 2e 6f 72 67 3e 0a 20 2a 0a 20 @clisp.org>. *.
0070: 2a 20 54 68 69 73 20 69 73 20 66 72 65 65 20 73 * This is free s
0080: 6f 66 74 77 61 72 65 20 64 69 73 74 72 69 62 75 oftware distribu
0090: 74 65 64 20 75 6e 64 65 72 20 74 68 65 20 47 4e ted under the GN
00a0: 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 U General Public
00b0: 20 4c 69 63 65 6e 63 65 0a 20 2a 20 64 65 73 63 Licence. * desc
00c0: 72 69 62 65 64 20 69 6e 20 74 68 65 20 66 69 6c ribed in the fil
00d0: 65 20 43 4f 50 59 49 4e 47 2e 20 43 6f 6e 74 61 e COPYING. Conta
00e0: 63 74 20 74 68 65 20 61 75 74 68 6f 72 20 69 66 ct the author if
00f0: 20 79 6f 75 20 64 6f 6e 27 74 20 68 61 76 65 20 you don't have
0100: 74 68 69 73 0a 20 2a 20 6f 72 20 63 61 6e 27 74 this. * or can't
0110: 20 6c 69 76 65 20 77 69 74 68 20 69 74 2e 20 54 live with it. T
0120: 68 65 72 65 20 69 73 20 41 42 53 4f 4c 55 54 45 here is ABSOLUTE
0130: 4c 59 20 4e 4f 20 57 41 52 52 41 4e 54 59 2c 20 LY NO WARRANTY,
0140: 65 78 70 6c 69 63 69 74 20 6f 72 20 69 6d 70 6c explicit or impl
0150: 69 65 64 2c 0a 20 2a 20 6f 6e 20 74 68 69 73 20 ied,. * on this
0160: 73 6f 66 74 77 61 72 65 2e 0a 20 2a 2f 0a 0a 2f software.. */../
0170: 2a 20 41 76 61 69 6c 61 62 6c 65 20 72 65 67 69 * Available regi
0180: 73 74 65 72 73 3a 20 72 30 2c 20 72 31 32 2c 20 sters: r0, r12,
0190: 72 31 31 2c 20 72 31 30 2c 20 72 39 2c 20 72 38 r11, r10, r9, r8
01a0: 2c 20 72 37 2c 20 72 36 2c 20 72 35 2c 20 72 34 , r7, r6, r5, r4
01b0: 2c 20 72 33 2e 20 2a 2f 0a 2f 2a 20 48 6f 77 65 , r3. */./* Howe
01c0: 76 65 72 2c 20 72 30 20 69 73 20 73 70 65 63 69 ver, r0 is speci
01d0: 61 6c 20 69 6e 20 74 68 61 74 20 69 74 20 63 61 al in that it ca
01e0: 6e 6e 6f 74 20 62 65 20 75 73 65 64 20 61 73 20 nnot be used as
01f0: 61 20 62 61 73 65 20 72 65 67 69 73 74 65 72 2e a base register.
0200: 20 2a 2f 0a 2f 2a 20 41 6e 64 20 72 33 2e 2e 2e */./* And r3...
0210: 72 31 30 20 73 68 6f 75 6c 64 20 6e 6f 74 20 62 r10 should not b
0220: 65 20 63 6c 6f 62 62 65 72 65 64 20 62 65 63 61 e clobbered beca
0230: 75 73 65 20 74 68 65 79 20 63 6f 6e 74 61 69 6e use they contain
0240: 20 74 68 65 20 66 69 72 73 74 20 38 0a 20 2a 20 the first 8. *
0250: 69 6e 74 65 67 65 72 20 61 72 67 75 6d 65 6e 74 integer argument
0260: 73 20 74 6f 20 74 68 65 20 66 75 6e 63 74 69 6f s to the functio
0270: 6e 20 62 65 69 6e 67 20 63 61 6c 6c 65 64 2e 20 n being called.
0280: 2a 2f 0a 0a 09 2e 67 6c 6f 62 6c 20 74 72 61 6d */....globl tram
0290: 70 0a 74 72 61 6d 70 3a 0a 2f 2a 20 4d 6f 76 65 p.tramp:./* Move
02a0: 20 3c 64 61 74 61 3e 20 69 6e 74 6f 20 3c 76 61 <data> into <va
02b0: 72 69 61 62 6c 65 3e 20 2a 2f 0a 09 6c 69 73 20 riable> */..lis
02c0: 31 31 2c 30 78 31 32 33 34 0a 09 6f 72 69 20 31 11,0x1234..ori 1
02d0: 31 2c 31 31 2c 30 78 35 36 37 38 0a 09 6c 69 73 1,11,0x5678..lis
02e0: 20 31 32 2c 30 78 37 33 35 35 0a 09 6f 72 69 20 12,0x7355..ori
02f0: 31 32 2c 31 32 2c 30 78 34 37 31 31 0a 09 73 74 12,12,0x4711..st
0300: 77 20 31 32 2c 30 28 31 31 29 0a 2f 2a 20 47 65 w 12,0(11)./* Ge
0310: 74 20 3c 66 75 6e 63 74 69 6f 6e 3e 20 2a 2f 0a t <function> */.
0320: 09 6c 69 73 20 30 2c 30 78 62 61 62 65 0a 09 6f .lis 0,0xbabe..o
0330: 72 69 20 30 2c 30 2c 30 78 62 65 63 30 0a 09 6d ri 0,0,0xbec0..m
0340: 74 63 74 72 20 30 0a 09 62 63 74 72 0a tctr 0..bctr.