Artifact 65c13c7e5d132fa0da645d8379ceabaaad0685c9:


0000: 2f 2a 20 54 72 61 6d 70 6f 6c 69 6e 65 20 66 6f  /* Trampoline fo
0010: 72 20 61 6c 70 68 61 20 43 50 55 20 2a 2f 0a 0a  r alpha CPU */..
0020: 2f 2a 0a 20 2a 20 43 6f 70 79 72 69 67 68 74 20  /*. * Copyright 
0030: 31 39 39 35 2d 31 39 39 37 20 42 72 75 6e 6f 20  1995-1997 Bruno 
0040: 48 61 69 62 6c 65 2c 20 3c 62 72 75 6e 6f 40 63  Haible, <bruno@c
0050: 6c 69 73 70 2e 6f 72 67 3e 0a 20 2a 0a 20 2a 20  lisp.org>. *. * 
0060: 54 68 69 73 20 69 73 20 66 72 65 65 20 73 6f 66  This is free sof
0070: 74 77 61 72 65 20 64 69 73 74 72 69 62 75 74 65  tware distribute
0080: 64 20 75 6e 64 65 72 20 74 68 65 20 47 4e 55 20  d under the GNU 
0090: 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c  General Public L
00a0: 69 63 65 6e 63 65 0a 20 2a 20 64 65 73 63 72 69  icence. * descri
00b0: 62 65 64 20 69 6e 20 74 68 65 20 66 69 6c 65 20  bed in the file 
00c0: 43 4f 50 59 49 4e 47 2e 20 43 6f 6e 74 61 63 74  COPYING. Contact
00d0: 20 74 68 65 20 61 75 74 68 6f 72 20 69 66 20 79   the author if y
00e0: 6f 75 20 64 6f 6e 27 74 20 68 61 76 65 20 74 68  ou don't have th
00f0: 69 73 0a 20 2a 20 6f 72 20 63 61 6e 27 74 20 6c  is. * or can't l
0100: 69 76 65 20 77 69 74 68 20 69 74 2e 20 54 68 65  ive with it. The
0110: 72 65 20 69 73 20 41 42 53 4f 4c 55 54 45 4c 59  re is ABSOLUTELY
0120: 20 4e 4f 20 57 41 52 52 41 4e 54 59 2c 20 65 78   NO WARRANTY, ex
0130: 70 6c 69 63 69 74 20 6f 72 20 69 6d 70 6c 69 65  plicit or implie
0140: 64 2c 0a 20 2a 20 6f 6e 20 74 68 69 73 20 73 6f  d,. * on this so
0150: 66 74 77 61 72 65 2e 0a 20 2a 2f 0a 0a 2f 2a 20  ftware.. */../* 
0160: 41 76 61 69 6c 61 62 6c 65 20 72 65 67 69 73 74  Available regist
0170: 65 72 73 3a 20 24 31 2c 20 24 32 2c 20 24 33 2c  ers: $1, $2, $3,
0180: 20 24 34 2c 20 24 35 2c 20 24 36 2c 20 24 37 2c   $4, $5, $6, $7,
0190: 20 24 38 2e 20 2a 2f 0a 0a 09 2e 73 65 74 20 6e   $8. */....set n
01a0: 6f 72 65 6f 72 64 65 72 0a 09 2e 73 65 74 20 6e  oreorder...set n
01b0: 6f 61 74 0a 2e 74 65 78 74 0a 09 2e 61 6c 69 67  oat..text...alig
01c0: 6e 20 33 0a 0a 09 2e 67 6c 6f 62 6c 20 74 72 61  n 3....globl tra
01d0: 6d 70 0a 09 2e 65 6e 74 20 74 72 61 6d 70 0a 74  mp...ent tramp.t
01e0: 72 61 6d 70 3a 0a 09 62 72 20 24 31 2c 74 72 61  ramp:..br $1,tra
01f0: 6d 70 31 09 09 2f 2a 20 24 31 20 3a 3d 20 61 64  mp1../* $1 := ad
0200: 64 72 65 73 73 20 6f 66 20 74 72 61 6d 70 31 20  dress of tramp1 
0210: 2a 2f 0a 74 72 61 6d 70 31 3a 09 2f 2a 20 4c 6f  */.tramp1:./* Lo
0220: 61 64 20 65 76 65 72 79 74 68 69 6e 67 20 72 65  ad everything re
0230: 6c 61 74 69 76 65 20 74 6f 20 24 31 2e 20 49 66  lative to $1. If
0240: 20 77 65 20 77 65 72 65 20 74 6f 20 75 73 65 20   we were to use 
0250: 22 6c 64 61 22 20 69 6e 73 74 72 75 63 74 69 6f  "lda" instructio
0260: 6e 73 0a 09 20 2a 20 77 65 20 77 6f 75 6c 64 20  ns.. * we would 
0270: 68 61 76 65 20 74 6f 20 64 6f 20 74 68 65 20 75  have to do the u
0280: 73 75 61 6c 20 20 6c 64 67 70 20 24 32 39 2c 30  sual  ldgp $29,0
0290: 28 24 32 37 29 0a 09 20 2a 2f 0a 09 6c 64 71 20  ($27).. */..ldq 
02a0: 24 32 37 2c 32 30 28 24 31 29 09 09 2f 2a 20 66  $27,20($1)../* f
02b0: 75 6e 63 74 69 6f 6e 20 2a 2f 0a 09 6c 64 71 20  unction */..ldq 
02c0: 24 31 2c 31 32 28 24 31 29 09 09 2f 2a 20 64 61  $1,12($1)../* da
02d0: 74 61 20 2a 2f 0a 09 2f 2a 20 54 68 65 20 63 61  ta */../* The ca
02e0: 6c 6c 65 64 20 66 75 6e 63 74 69 6f 6e 20 65 78  lled function ex
02f0: 70 65 63 74 73 20 74 6f 20 73 65 65 20 69 74 73  pects to see its
0300: 20 6f 77 6e 20 61 64 64 72 65 73 73 20 69 6e 20   own address in 
0310: 24 32 37 2e 20 2a 2f 0a 09 6a 6d 70 20 24 33 31  $27. */..jmp $31
0320: 2c 28 24 32 37 29 2c 30 09 09 2f 2a 20 6a 75 6d  ,($27),0../* jum
0330: 70 20 74 6f 20 66 75 6e 63 74 69 6f 6e 20 2a 2f  p to function */
0340: 0a 0a 09 2e 61 6c 69 67 6e 20 33 0a 64 61 74 61  ....align 3.data
0350: 3a 0a 09 2e 71 75 61 64 20 30 78 37 33 35 35 34  :...quad 0x73554
0360: 37 31 31 0a 0a 09 2e 61 6c 69 67 6e 20 33 0a 66  711....align 3.f
0370: 75 6e 63 74 69 6f 6e 3a 0a 09 2e 71 75 61 64 20  unction:...quad 
0380: 30 78 62 61 62 65 62 65 63 30 0a 0a 09 2e 65 6e  0xbabebec0....en
0390: 64 20 74 72 61 6d 70 0a                          d tramp.