Artifact f9e8e4a49cc3c2e34919010efb85d99c9f873a71:


0000: 21 20 54 72 61 6d 70 6f 6c 69 6e 65 20 66 6f 72  ! Trampoline for
0010: 20 73 70 61 72 63 36 34 20 43 50 55 0a 0a 21 20   sparc64 CPU..! 
0020: 43 6f 70 79 72 69 67 68 74 20 31 39 39 39 20 42  Copyright 1999 B
0030: 72 75 6e 6f 20 48 61 69 62 6c 65 2c 20 3c 62 72  runo Haible, <br
0040: 75 6e 6f 40 63 6c 69 73 70 2e 6f 72 67 3e 0a 21  uno@clisp.org>.!
0050: 0a 21 20 54 68 69 73 20 69 73 20 66 72 65 65 20  .! This is free 
0060: 73 6f 66 74 77 61 72 65 20 64 69 73 74 72 69 62  software distrib
0070: 75 74 65 64 20 75 6e 64 65 72 20 74 68 65 20 47  uted under the G
0080: 4e 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69  NU General Publi
0090: 63 20 4c 69 63 65 6e 63 65 0a 21 20 64 65 73 63  c Licence.! desc
00a0: 72 69 62 65 64 20 69 6e 20 74 68 65 20 66 69 6c  ribed in the fil
00b0: 65 20 43 4f 50 59 49 4e 47 2e 20 43 6f 6e 74 61  e COPYING. Conta
00c0: 63 74 20 74 68 65 20 61 75 74 68 6f 72 20 69 66  ct the author if
00d0: 20 79 6f 75 20 64 6f 6e 27 74 20 68 61 76 65 20   you don't have 
00e0: 74 68 69 73 0a 21 20 6f 72 20 63 61 6e 27 74 20  this.! or can't 
00f0: 6c 69 76 65 20 77 69 74 68 20 69 74 2e 20 54 68  live with it. Th
0100: 65 72 65 20 69 73 20 41 42 53 4f 4c 55 54 45 4c  ere is ABSOLUTEL
0110: 59 20 4e 4f 20 57 41 52 52 41 4e 54 59 2c 20 65  Y NO WARRANTY, e
0120: 78 70 6c 69 63 69 74 20 6f 72 20 69 6d 70 6c 69  xplicit or impli
0130: 65 64 2c 0a 21 20 6f 6e 20 74 68 69 73 20 73 6f  ed,.! on this so
0140: 66 74 77 61 72 65 2e 0a 0a 21 20 41 76 61 69 6c  ftware...! Avail
0150: 61 62 6c 65 20 72 65 67 69 73 74 65 72 73 3a 20  able registers: 
0160: 25 67 31 2c 20 25 67 32 2c 20 25 67 33 2e 0a 0a  %g1, %g2, %g3...
0170: 09 2e 67 6c 6f 62 61 6c 20 5f 74 72 61 6d 70 0a  ..global _tramp.
0180: 09 2e 70 72 6f 63 09 30 34 0a 5f 74 72 61 6d 70  ..proc.04._tramp
0190: 3a 0a 09 63 61 6c 6c 20 5f 67 65 74 70 63 2c 30  :..call _getpc,0
01a0: 09 09 21 20 50 75 74 20 74 68 65 20 61 64 64 72  ..! Put the addr
01b0: 65 73 73 20 6f 66 20 5f 74 72 61 6d 70 20 69 6e  ess of _tramp in
01c0: 74 6f 20 25 6f 37 0a 09 20 6d 6f 76 20 25 6f 37  to %o7.. mov %o7
01d0: 2c 25 67 31 09 09 21 20 42 75 74 20 73 61 76 65  ,%g1..! But save
01e0: 20 74 68 65 20 70 72 65 76 69 6f 75 73 20 25 6f   the previous %o
01f0: 37 20 69 6e 20 25 67 31 0a 5f 67 65 74 70 63 3a  7 in %g1._getpc:
0200: 0a 09 6c 64 78 20 5b 25 6f 37 2b 28 5f 64 61 74  ..ldx [%o7+(_dat
0210: 61 2d 5f 74 72 61 6d 70 29 5d 2c 25 67 35 0a 09  a-_tramp)],%g5..
0220: 6c 64 78 20 5b 25 6f 37 2b 28 5f 66 75 6e 63 74  ldx [%o7+(_funct
0230: 69 6f 6e 2d 5f 74 72 61 6d 70 29 5d 2c 25 67 32  ion-_tramp)],%g2
0240: 0a 09 6a 6d 70 20 25 67 32 0a 09 20 6d 6f 76 20  ..jmp %g2.. mov 
0250: 25 67 31 2c 25 6f 37 0a 5f 64 61 74 61 3a 0a 09  %g1,%o7._data:..
0260: 2e 6c 6f 6e 67 20 30 78 37 33 35 35 34 37 31 31  .long 0x73554711
0270: 0a 09 2e 6c 6f 6e 67 20 30 78 34 33 36 32 32 31  ...long 0x436221
0280: 35 35 0a 5f 66 75 6e 63 74 69 6f 6e 3a 0a 09 2e  55._function:...
0290: 6c 6f 6e 67 20 30 78 62 61 62 65 62 65 63 30 0a  long 0xbabebec0.
02a0: 09 2e 6c 6f 6e 67 20 30 78 64 65 61 30 66 66 61  ..long 0xdea0ffa
02b0: 62 0a                                            b.