Artifact 591d8e7299bfb4dae52f01a17ad7d8c19578df5d:


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 2d 31 39 39 37 20 42 72 75 6e 6f 20 48 61  96-1997 Bruno Ha
0050: 69 62 6c 65 2c 20 3c 62 72 75 6e 6f 40 63 6c 69  ible, <bruno@cli
0060: 73 70 2e 6f 72 67 3e 0a 20 2a 0a 20 2a 20 54 68  sp.org>. *. * Th
0070: 69 73 20 69 73 20 66 72 65 65 20 73 6f 66 74 77  is is free softw
0080: 61 72 65 20 64 69 73 74 72 69 62 75 74 65 64 20  are distributed 
0090: 75 6e 64 65 72 20 74 68 65 20 47 4e 55 20 47 65  under the GNU Ge
00a0: 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63  neral Public Lic
00b0: 65 6e 63 65 0a 20 2a 20 64 65 73 63 72 69 62 65  ence. * describe
00c0: 64 20 69 6e 20 74 68 65 20 66 69 6c 65 20 43 4f  d in the file CO
00d0: 50 59 49 4e 47 2e 20 43 6f 6e 74 61 63 74 20 74  PYING. Contact t
00e0: 68 65 20 61 75 74 68 6f 72 20 69 66 20 79 6f 75  he author if you
00f0: 20 64 6f 6e 27 74 20 68 61 76 65 20 74 68 69 73   don't have this
0100: 0a 20 2a 20 6f 72 20 63 61 6e 27 74 20 6c 69 76  . * or can't liv
0110: 65 20 77 69 74 68 20 69 74 2e 20 54 68 65 72 65  e with it. There
0120: 20 69 73 20 41 42 53 4f 4c 55 54 45 4c 59 20 4e   is ABSOLUTELY N
0130: 4f 20 57 41 52 52 41 4e 54 59 2c 20 65 78 70 6c  O WARRANTY, expl
0140: 69 63 69 74 20 6f 72 20 69 6d 70 6c 69 65 64 2c  icit or implied,
0150: 0a 20 2a 20 6f 6e 20 74 68 69 73 20 73 6f 66 74  . * on this soft
0160: 77 61 72 65 2e 0a 20 2a 2f 0a 0a 2f 2a 20 41 76  ware.. */../* Av
0170: 61 69 6c 61 62 6c 65 20 72 65 67 69 73 74 65 72  ailable register
0180: 73 3a 20 24 32 2c 20 24 33 2e 20 2a 2f 0a 0a 09  s: $2, $3. */...
0190: 2e 73 65 74 09 6e 6f 62 6f 70 74 0a 09 2e 73 65  .set.nobopt...se
01a0: 74 09 6e 6f 72 65 6f 72 64 65 72 0a 09 2e 74 65  t.noreorder...te
01b0: 78 74 0a 09 2e 67 6c 6f 62 6c 09 6d 61 69 6e 0a  xt...globl.main.
01c0: 09 2e 65 6e 74 09 6d 61 69 6e 0a 6d 61 69 6e 3a  ..ent.main.main:
01d0: 0a 09 2e 65 6e 64 09 6d 61 69 6e 0a 09 2e 67 6c  ...end.main...gl
01e0: 6f 62 6c 09 74 72 61 6d 70 0a 09 2e 65 6e 74 09  obl.tramp...ent.
01f0: 74 72 61 6d 70 0a 74 72 61 6d 70 3a 0a 23 09 64  tramp.tramp:.#.d
0200: 6c 69 09 24 32 2c 30 78 37 33 35 35 34 37 31 31  li.$2,0x73554711
0210: 34 33 36 32 32 31 35 35 0a 09 6c 75 69 09 24 32  43622155..lui.$2
0220: 2c 30 78 37 33 35 35 0a 09 6f 72 69 09 24 32 2c  ,0x7355..ori.$2,
0230: 24 32 2c 30 78 34 37 31 31 0a 09 64 73 6c 6c 09  $2,0x4711..dsll.
0240: 24 32 2c 24 32 2c 31 36 0a 09 6f 72 69 09 24 32  $2,$2,16..ori.$2
0250: 2c 24 32 2c 30 78 34 33 36 32 0a 09 64 73 6c 6c  ,$2,0x4362..dsll
0260: 09 24 32 2c 24 32 2c 31 36 0a 09 6f 72 69 09 24  .$2,$2,16..ori.$
0270: 32 2c 24 32 2c 30 78 32 31 35 35 0a 23 09 64 6c  2,$2,0x2155.#.dl
0280: 69 09 24 32 35 2c 30 78 62 61 62 65 62 65 63 30  i.$25,0xbabebec0
0290: 64 65 61 30 66 66 61 62 0a 09 6c 75 69 09 24 32  dea0ffab..lui.$2
02a0: 35 2c 30 78 62 61 62 65 0a 09 6f 72 69 09 24 32  5,0xbabe..ori.$2
02b0: 35 2c 24 32 35 2c 30 78 62 65 63 30 0a 09 64 73  5,$25,0xbec0..ds
02c0: 6c 6c 09 24 32 35 2c 24 32 35 2c 31 36 0a 09 6f  ll.$25,$25,16..o
02d0: 72 69 09 24 32 35 2c 24 32 35 2c 30 78 64 65 61  ri.$25,$25,0xdea
02e0: 30 0a 09 64 73 6c 6c 09 24 32 35 2c 24 32 35 2c  0..dsll.$25,$25,
02f0: 31 36 0a 09 6f 72 69 09 24 32 35 2c 24 32 35 2c  16..ori.$25,$25,
0300: 30 78 66 66 61 62 0a 09 2f 2a 20 54 68 65 20 63  0xffab../* The c
0310: 61 6c 6c 65 64 20 66 75 6e 63 74 69 6f 6e 20 65  alled function e
0320: 78 70 65 63 74 73 20 74 6f 20 73 65 65 20 69 74  xpects to see it
0330: 73 20 6f 77 6e 20 61 64 64 72 65 73 73 20 69 6e  s own address in
0340: 20 24 32 35 2e 20 2a 2f 0a 09 6a 09 24 32 35 0a   $25. */..j.$25.
0350: 09 2f 2a 20 53 6f 6d 65 20 4d 69 70 73 20 68 61  ./* Some Mips ha
0360: 72 64 77 61 72 65 20 72 75 6e 6e 69 6e 67 20 49  rdware running I
0370: 72 69 78 2d 34 2e 30 2e 35 20 6e 65 65 64 73 20  rix-4.0.5 needs 
0380: 74 68 69 73 20 6e 6f 70 2e 20 2a 2f 0a 09 6e 6f  this nop. */..no
0390: 70 0a 09 2e 65 6e 64 09 74 72 61 6d 70 0a        p...end.tramp.