Artifact 565b4eb1a96b7abf8c486f1208168ec0cdad45db:


0000: 2f 2a 20 76 61 63 61 6c 6c 20 66 75 6e 63 74 69  /* vacall functi
0010: 6f 6e 20 66 6f 72 20 6d 36 38 6b 20 43 50 55 20  on for m68k CPU 
0020: 2a 2f 0a 0a 2f 2a 0a 20 2a 20 43 6f 70 79 72 69  */../*. * Copyri
0030: 67 68 74 20 31 39 39 35 2d 32 30 30 34 20 42 72  ght 1995-2004 Br
0040: 75 6e 6f 20 48 61 69 62 6c 65 2c 20 3c 62 72 75  uno Haible, <bru
0050: 6e 6f 40 63 6c 69 73 70 2e 6f 72 67 3e 0a 20 2a  no@clisp.org>. *
0060: 0a 20 2a 20 54 68 69 73 20 69 73 20 66 72 65 65  . * This is free
0070: 20 73 6f 66 74 77 61 72 65 20 64 69 73 74 72 69   software distri
0080: 62 75 74 65 64 20 75 6e 64 65 72 20 74 68 65 20  buted under the 
0090: 47 4e 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c  GNU General Publ
00a0: 69 63 20 4c 69 63 65 6e 63 65 0a 20 2a 20 64 65  ic Licence. * de
00b0: 73 63 72 69 62 65 64 20 69 6e 20 74 68 65 20 66  scribed in the f
00c0: 69 6c 65 20 43 4f 50 59 49 4e 47 2e 20 43 6f 6e  ile COPYING. Con
00d0: 74 61 63 74 20 74 68 65 20 61 75 74 68 6f 72 20  tact the author 
00e0: 69 66 20 79 6f 75 20 64 6f 6e 27 74 20 68 61 76  if you don't hav
00f0: 65 20 74 68 69 73 0a 20 2a 20 6f 72 20 63 61 6e  e this. * or can
0100: 27 74 20 6c 69 76 65 20 77 69 74 68 20 69 74 2e  't live with it.
0110: 20 54 68 65 72 65 20 69 73 20 41 42 53 4f 4c 55   There is ABSOLU
0120: 54 45 4c 59 20 4e 4f 20 57 41 52 52 41 4e 54 59  TELY NO WARRANTY
0130: 2c 20 65 78 70 6c 69 63 69 74 20 6f 72 20 69 6d  , explicit or im
0140: 70 6c 69 65 64 2c 0a 20 2a 20 6f 6e 20 74 68 69  plied,. * on thi
0150: 73 20 73 6f 66 74 77 61 72 65 2e 0a 20 2a 2f 0a  s software.. */.
0160: 0a 23 69 66 6e 64 65 66 20 52 45 45 4e 54 52 41  .#ifndef REENTRA
0170: 4e 54 0a 23 69 6e 63 6c 75 64 65 20 22 76 61 63  NT.#include "vac
0180: 61 6c 6c 2e 68 2e 69 6e 22 0a 23 65 6c 73 65 20  all.h.in".#else 
0190: 2f 2a 20 52 45 45 4e 54 52 41 4e 54 20 2a 2f 0a  /* REENTRANT */.
01a0: 23 69 6e 63 6c 75 64 65 20 22 76 61 63 61 6c 6c  #include "vacall
01b0: 5f 72 2e 68 2e 69 6e 22 0a 23 65 6e 64 69 66 0a  _r.h.in".#endif.
01c0: 0a 23 69 66 64 65 66 20 52 45 45 4e 54 52 41 4e  .#ifdef REENTRAN
01d0: 54 0a 23 64 65 66 69 6e 65 20 5f 5f 76 61 63 61  T.#define __vaca
01e0: 6c 6c 20 5f 5f 76 61 63 61 6c 6c 5f 72 0a 72 65  ll __vacall_r.re
01f0: 67 69 73 74 65 72 20 73 74 72 75 63 74 20 7b 20  gister struct { 
0200: 76 6f 69 64 20 28 2a 76 61 63 61 6c 6c 5f 66 75  void (*vacall_fu
0210: 6e 63 74 69 6f 6e 29 20 28 76 6f 69 64 2a 2c 76  nction) (void*,v
0220: 61 5f 61 6c 69 73 74 29 3b 20 76 6f 69 64 2a 20  a_alist); void* 
0230: 61 72 67 3b 20 7d 0a 20 20 20 20 20 20 20 20 20  arg; }.         
0240: 2a 09 65 6e 76 09 5f 5f 61 73 6d 5f 5f 28 22 61  *.env.__asm__("a
0250: 30 22 29 3b 0a 23 65 6e 64 69 66 0a 72 65 67 69  0");.#endif.regi
0260: 73 74 65 72 20 76 6f 69 64 2a 09 73 72 65 74 09  ster void*.sret.
0270: 5f 5f 61 73 6d 5f 5f 28 22 61 31 22 29 3b 0a 72  __asm__("a1");.r
0280: 65 67 69 73 74 65 72 20 69 6e 74 09 69 72 65 74  egister int.iret
0290: 09 5f 5f 61 73 6d 5f 5f 28 22 64 30 22 29 3b 0a  .__asm__("d0");.
02a0: 72 65 67 69 73 74 65 72 20 69 6e 74 09 69 72 65  register int.ire
02b0: 74 32 09 5f 5f 61 73 6d 5f 5f 28 22 64 31 22 29  t2.__asm__("d1")
02c0: 3b 0a 72 65 67 69 73 74 65 72 20 69 6e 74 09 70  ;.register int.p
02d0: 72 65 74 09 5f 5f 61 73 6d 5f 5f 28 22 61 30 22  ret.__asm__("a0"
02e0: 29 3b 09 2f 2a 20 73 6f 6d 65 20 63 6f 6d 70 69  );./* some compi
02f0: 6c 65 72 73 20 72 65 74 75 72 6e 20 70 6f 69 6e  lers return poin
0300: 74 65 72 73 20 69 6e 20 61 30 20 2a 2f 0a 72 65  ters in a0 */.re
0310: 67 69 73 74 65 72 20 66 6c 6f 61 74 09 66 72 65  gister float.fre
0320: 74 09 5f 5f 61 73 6d 5f 5f 28 22 64 30 22 29 3b  t.__asm__("d0");
0330: 09 2f 2a 20 64 30 20 2a 2f 0a 72 65 67 69 73 74  ./* d0 */.regist
0340: 65 72 20 64 6f 75 62 6c 65 09 64 72 65 74 09 5f  er double.dret._
0350: 5f 61 73 6d 5f 5f 28 22 64 30 22 29 3b 09 2f 2a  _asm__("d0");./*
0360: 20 64 30 2c 64 31 20 2a 2f 0a 72 65 67 69 73 74   d0,d1 */.regist
0370: 65 72 20 66 6c 6f 61 74 09 66 70 5f 66 72 65 74  er float.fp_fret
0380: 09 5f 5f 61 73 6d 5f 5f 28 22 66 70 30 22 29 3b  .__asm__("fp0");
0390: 0a 72 65 67 69 73 74 65 72 20 64 6f 75 62 6c 65  .register double
03a0: 09 66 70 5f 64 72 65 74 09 5f 5f 61 73 6d 5f 5f  .fp_dret.__asm__
03b0: 28 22 66 70 30 22 29 3b 0a 0a 76 6f 69 64 20 2f  ("fp0");..void /
03c0: 2a 20 74 68 65 20 72 65 74 75 72 6e 20 74 79 70  * the return typ
03d0: 65 20 69 73 20 76 61 72 69 61 62 6c 65 2c 20 6e  e is variable, n
03e0: 6f 74 20 76 6f 69 64 21 20 2a 2f 0a 5f 5f 76 61  ot void! */.__va
03f0: 63 61 6c 6c 20 28 5f 5f 76 61 77 6f 72 64 20 66  call (__vaword f
0400: 69 72 73 74 77 6f 72 64 29 0a 7b 0a 20 20 5f 5f  irstword).{.  __
0410: 76 61 5f 61 6c 69 73 74 20 6c 69 73 74 3b 0a 20  va_alist list;. 
0420: 20 2f 2a 20 50 72 65 70 61 72 65 20 74 68 65 20   /* Prepare the 
0430: 76 61 5f 61 6c 69 73 74 2e 20 2a 2f 0a 20 20 6c  va_alist. */.  l
0440: 69 73 74 2e 66 6c 61 67 73 20 3d 20 30 3b 0a 20  ist.flags = 0;. 
0450: 20 6c 69 73 74 2e 61 70 74 72 20 3d 20 28 6c 6f   list.aptr = (lo
0460: 6e 67 29 26 66 69 72 73 74 77 6f 72 64 3b 0a 20  ng)&firstword;. 
0470: 20 6c 69 73 74 2e 72 61 64 64 72 20 3d 20 28 76   list.raddr = (v
0480: 6f 69 64 2a 29 30 3b 0a 20 20 6c 69 73 74 2e 72  oid*)0;.  list.r
0490: 74 79 70 65 20 3d 20 5f 5f 56 41 76 6f 69 64 3b  type = __VAvoid;
04a0: 0a 20 20 6c 69 73 74 2e 73 74 72 75 63 74 72 61  .  list.structra
04b0: 64 64 72 20 3d 20 73 72 65 74 3b 0a 20 20 2f 2a  ddr = sret;.  /*
04c0: 20 43 61 6c 6c 20 76 61 63 61 6c 6c 5f 66 75 6e   Call vacall_fun
04d0: 63 74 69 6f 6e 2e 20 54 68 65 20 6d 61 63 72 6f  ction. The macro
04e0: 73 20 64 6f 20 61 6c 6c 20 74 68 65 20 72 65 73  s do all the res
04f0: 74 2e 20 2a 2f 0a 23 69 66 6e 64 65 66 20 52 45  t. */.#ifndef RE
0500: 45 4e 54 52 41 4e 54 0a 20 20 28 2a 76 61 63 61  ENTRANT.  (*vaca
0510: 6c 6c 5f 66 75 6e 63 74 69 6f 6e 29 20 28 26 6c  ll_function) (&l
0520: 69 73 74 29 3b 0a 23 65 6c 73 65 20 2f 2a 20 52  ist);.#else /* R
0530: 45 45 4e 54 52 41 4e 54 20 2a 2f 0a 20 20 28 2a  EENTRANT */.  (*
0540: 65 6e 76 2d 3e 76 61 63 61 6c 6c 5f 66 75 6e 63  env->vacall_func
0550: 74 69 6f 6e 29 20 28 65 6e 76 2d 3e 61 72 67 2c  tion) (env->arg,
0560: 26 6c 69 73 74 29 3b 0a 23 65 6e 64 69 66 0a 20  &list);.#endif. 
0570: 20 2f 2a 20 50 75 74 20 72 65 74 75 72 6e 20 76   /* Put return v
0580: 61 6c 75 65 20 69 6e 74 6f 20 70 72 6f 70 65 72  alue into proper
0590: 20 72 65 67 69 73 74 65 72 2e 20 2a 2f 0a 20 20   register. */.  
05a0: 69 66 20 28 6c 69 73 74 2e 72 74 79 70 65 20 3d  if (list.rtype =
05b0: 3d 20 5f 5f 56 41 76 6f 69 64 29 20 7b 0a 20 20  = __VAvoid) {.  
05c0: 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 69 73  } else.  if (lis
05d0: 74 2e 72 74 79 70 65 20 3d 3d 20 5f 5f 56 41 63  t.rtype == __VAc
05e0: 68 61 72 29 20 7b 0a 20 20 20 20 69 72 65 74 20  har) {.    iret 
05f0: 3d 20 6c 69 73 74 2e 74 6d 70 2e 5f 63 68 61 72  = list.tmp._char
0600: 3b 0a 20 20 7d 20 65 6c 73 65 0a 20 20 69 66 20  ;.  } else.  if 
0610: 28 6c 69 73 74 2e 72 74 79 70 65 20 3d 3d 20 5f  (list.rtype == _
0620: 5f 56 41 73 63 68 61 72 29 20 7b 0a 20 20 20 20  _VAschar) {.    
0630: 69 72 65 74 20 3d 20 6c 69 73 74 2e 74 6d 70 2e  iret = list.tmp.
0640: 5f 73 63 68 61 72 3b 0a 20 20 7d 20 65 6c 73 65  _schar;.  } else
0650: 0a 20 20 69 66 20 28 6c 69 73 74 2e 72 74 79 70  .  if (list.rtyp
0660: 65 20 3d 3d 20 5f 5f 56 41 75 63 68 61 72 29 20  e == __VAuchar) 
0670: 7b 0a 20 20 20 20 69 72 65 74 20 3d 20 6c 69 73  {.    iret = lis
0680: 74 2e 74 6d 70 2e 5f 75 63 68 61 72 3b 0a 20 20  t.tmp._uchar;.  
0690: 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 69 73  } else.  if (lis
06a0: 74 2e 72 74 79 70 65 20 3d 3d 20 5f 5f 56 41 73  t.rtype == __VAs
06b0: 68 6f 72 74 29 20 7b 0a 20 20 20 20 69 72 65 74  hort) {.    iret
06c0: 20 3d 20 6c 69 73 74 2e 74 6d 70 2e 5f 73 68 6f   = list.tmp._sho
06d0: 72 74 3b 0a 20 20 7d 20 65 6c 73 65 0a 20 20 69  rt;.  } else.  i
06e0: 66 20 28 6c 69 73 74 2e 72 74 79 70 65 20 3d 3d  f (list.rtype ==
06f0: 20 5f 5f 56 41 75 73 68 6f 72 74 29 20 7b 0a 20   __VAushort) {. 
0700: 20 20 20 69 72 65 74 20 3d 20 6c 69 73 74 2e 74     iret = list.t
0710: 6d 70 2e 5f 75 73 68 6f 72 74 3b 0a 20 20 7d 20  mp._ushort;.  } 
0720: 65 6c 73 65 0a 20 20 69 66 20 28 6c 69 73 74 2e  else.  if (list.
0730: 72 74 79 70 65 20 3d 3d 20 5f 5f 56 41 69 6e 74  rtype == __VAint
0740: 29 20 7b 0a 20 20 20 20 69 72 65 74 20 3d 20 6c  ) {.    iret = l
0750: 69 73 74 2e 74 6d 70 2e 5f 69 6e 74 3b 0a 20 20  ist.tmp._int;.  
0760: 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 69 73  } else.  if (lis
0770: 74 2e 72 74 79 70 65 20 3d 3d 20 5f 5f 56 41 75  t.rtype == __VAu
0780: 69 6e 74 29 20 7b 0a 20 20 20 20 69 72 65 74 20  int) {.    iret 
0790: 3d 20 6c 69 73 74 2e 74 6d 70 2e 5f 75 69 6e 74  = list.tmp._uint
07a0: 3b 0a 20 20 7d 20 65 6c 73 65 0a 20 20 69 66 20  ;.  } else.  if 
07b0: 28 6c 69 73 74 2e 72 74 79 70 65 20 3d 3d 20 5f  (list.rtype == _
07c0: 5f 56 41 6c 6f 6e 67 29 20 7b 0a 20 20 20 20 69  _VAlong) {.    i
07d0: 72 65 74 20 3d 20 6c 69 73 74 2e 74 6d 70 2e 5f  ret = list.tmp._
07e0: 6c 6f 6e 67 3b 0a 20 20 7d 20 65 6c 73 65 0a 20  long;.  } else. 
07f0: 20 69 66 20 28 6c 69 73 74 2e 72 74 79 70 65 20   if (list.rtype 
0800: 3d 3d 20 5f 5f 56 41 75 6c 6f 6e 67 29 20 7b 0a  == __VAulong) {.
0810: 20 20 20 20 69 72 65 74 20 3d 20 6c 69 73 74 2e      iret = list.
0820: 74 6d 70 2e 5f 75 6c 6f 6e 67 3b 0a 20 20 7d 20  tmp._ulong;.  } 
0830: 65 6c 73 65 0a 20 20 69 66 20 28 6c 69 73 74 2e  else.  if (list.
0840: 72 74 79 70 65 20 3d 3d 20 5f 5f 56 41 6c 6f 6e  rtype == __VAlon
0850: 67 6c 6f 6e 67 20 7c 7c 20 6c 69 73 74 2e 72 74  glong || list.rt
0860: 79 70 65 20 3d 3d 20 5f 5f 56 41 75 6c 6f 6e 67  ype == __VAulong
0870: 6c 6f 6e 67 29 20 7b 0a 20 20 20 20 69 72 65 74  long) {.    iret
0880: 20 20 3d 20 28 28 5f 5f 76 61 77 6f 72 64 20 2a    = ((__vaword *
0890: 29 20 26 6c 69 73 74 2e 74 6d 70 2e 5f 6c 6f 6e  ) &list.tmp._lon
08a0: 67 6c 6f 6e 67 29 5b 30 5d 3b 0a 20 20 20 20 69  glong)[0];.    i
08b0: 72 65 74 32 20 3d 20 28 28 5f 5f 76 61 77 6f 72  ret2 = ((__vawor
08c0: 64 20 2a 29 20 26 6c 69 73 74 2e 74 6d 70 2e 5f  d *) &list.tmp._
08d0: 6c 6f 6e 67 6c 6f 6e 67 29 5b 31 5d 3b 0a 20 20  longlong)[1];.  
08e0: 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 69 73  } else.  if (lis
08f0: 74 2e 72 74 79 70 65 20 3d 3d 20 5f 5f 56 41 66  t.rtype == __VAf
0900: 6c 6f 61 74 29 20 7b 0a 20 20 20 20 69 66 20 28  loat) {.    if (
0910: 6c 69 73 74 2e 66 6c 61 67 73 20 26 20 5f 5f 56  list.flags & __V
0920: 41 5f 46 52 45 47 5f 46 4c 4f 41 54 5f 52 45 54  A_FREG_FLOAT_RET
0930: 55 52 4e 29 20 7b 0a 20 20 20 20 20 20 66 70 5f  URN) {.      fp_
0940: 66 72 65 74 20 3d 20 6c 69 73 74 2e 74 6d 70 2e  fret = list.tmp.
0950: 5f 66 6c 6f 61 74 3b 0a 20 20 20 20 7d 20 65 6c  _float;.    } el
0960: 73 65 20 7b 0a 20 20 20 20 20 20 69 66 20 28 6c  se {.      if (l
0970: 69 73 74 2e 66 6c 61 67 73 20 26 20 5f 5f 56 41  ist.flags & __VA
0980: 5f 53 55 4e 43 43 5f 46 4c 4f 41 54 5f 52 45 54  _SUNCC_FLOAT_RET
0990: 55 52 4e 29 20 7b 0a 20 20 20 20 20 20 20 20 64  URN) {.        d
09a0: 72 65 74 20 3d 20 28 64 6f 75 62 6c 65 29 6c 69  ret = (double)li
09b0: 73 74 2e 74 6d 70 2e 5f 66 6c 6f 61 74 3b 0a 20  st.tmp._float;. 
09c0: 20 20 20 20 20 7d 20 65 6c 73 65 20 7b 0a 20 20       } else {.  
09d0: 20 20 20 20 20 20 66 72 65 74 20 3d 20 6c 69 73        fret = lis
09e0: 74 2e 74 6d 70 2e 5f 66 6c 6f 61 74 3b 0a 20 20  t.tmp._float;.  
09f0: 20 20 20 20 7d 0a 20 20 20 20 7d 0a 20 20 7d 20      }.    }.  } 
0a00: 65 6c 73 65 0a 20 20 69 66 20 28 6c 69 73 74 2e  else.  if (list.
0a10: 72 74 79 70 65 20 3d 3d 20 5f 5f 56 41 64 6f 75  rtype == __VAdou
0a20: 62 6c 65 29 20 7b 0a 20 20 20 20 69 66 20 28 6c  ble) {.    if (l
0a30: 69 73 74 2e 66 6c 61 67 73 20 26 20 5f 5f 56 41  ist.flags & __VA
0a40: 5f 46 52 45 47 5f 46 4c 4f 41 54 5f 52 45 54 55  _FREG_FLOAT_RETU
0a50: 52 4e 29 20 7b 0a 20 20 20 20 20 20 66 70 5f 64  RN) {.      fp_d
0a60: 72 65 74 20 3d 20 6c 69 73 74 2e 74 6d 70 2e 5f  ret = list.tmp._
0a70: 64 6f 75 62 6c 65 3b 0a 20 20 20 20 7d 20 65 6c  double;.    } el
0a80: 73 65 20 7b 0a 20 20 20 20 20 20 64 72 65 74 20  se {.      dret 
0a90: 3d 20 6c 69 73 74 2e 74 6d 70 2e 5f 64 6f 75 62  = list.tmp._doub
0aa0: 6c 65 3b 0a 20 20 20 20 7d 0a 20 20 7d 20 65 6c  le;.    }.  } el
0ab0: 73 65 0a 20 20 69 66 20 28 6c 69 73 74 2e 72 74  se.  if (list.rt
0ac0: 79 70 65 20 3d 3d 20 5f 5f 56 41 76 6f 69 64 70  ype == __VAvoidp
0ad0: 29 20 7b 0a 20 20 20 20 70 72 65 74 20 3d 20 69  ) {.    pret = i
0ae0: 72 65 74 20 3d 20 28 6c 6f 6e 67 29 6c 69 73 74  ret = (long)list
0af0: 2e 74 6d 70 2e 5f 70 74 72 3b 0a 20 20 7d 20 65  .tmp._ptr;.  } e
0b00: 6c 73 65 0a 20 20 69 66 20 28 6c 69 73 74 2e 72  lse.  if (list.r
0b10: 74 79 70 65 20 3d 3d 20 5f 5f 56 41 73 74 72 75  type == __VAstru
0b20: 63 74 29 20 7b 0a 20 20 20 20 2f 2a 20 4e 42 3a  ct) {.    /* NB:
0b30: 20 4f 6e 20 6d 36 38 6b 2c 20 61 6c 6c 20 73 74   On m68k, all st
0b40: 72 75 63 74 75 72 65 20 73 69 7a 65 73 20 61 72  ructure sizes ar
0b50: 65 20 64 69 76 69 73 69 62 6c 65 20 62 79 20 32  e divisible by 2
0b60: 2e 20 2a 2f 0a 20 20 20 20 69 66 20 28 6c 69 73  . */.    if (lis
0b70: 74 2e 66 6c 61 67 73 20 26 20 5f 5f 56 41 5f 52  t.flags & __VA_R
0b80: 45 47 49 53 54 45 52 5f 53 54 52 55 43 54 5f 52  EGISTER_STRUCT_R
0b90: 45 54 55 52 4e 29 20 7b 0a 20 20 20 20 20 20 69  ETURN) {.      i
0ba0: 66 20 28 6c 69 73 74 2e 72 73 69 7a 65 20 3d 3d  f (list.rsize ==
0bb0: 20 73 69 7a 65 6f 66 28 63 68 61 72 29 29 20 7b   sizeof(char)) {
0bc0: 20 2f 2a 20 63 61 6e 27 74 20 6f 63 63 75 72 20   /* can't occur 
0bd0: 2a 2f 0a 20 20 20 20 20 20 20 20 69 72 65 74 20  */.        iret 
0be0: 3d 20 2a 28 75 6e 73 69 67 6e 65 64 20 63 68 61  = *(unsigned cha
0bf0: 72 20 2a 29 20 6c 69 73 74 2e 72 61 64 64 72 3b  r *) list.raddr;
0c00: 0a 20 20 20 20 20 20 20 20 67 6f 74 6f 20 64 6f  .        goto do
0c10: 6e 65 3b 0a 20 20 20 20 20 20 7d 20 65 6c 73 65  ne;.      } else
0c20: 0a 20 20 20 20 20 20 69 66 20 28 6c 69 73 74 2e  .      if (list.
0c30: 72 73 69 7a 65 20 3d 3d 20 73 69 7a 65 6f 66 28  rsize == sizeof(
0c40: 73 68 6f 72 74 29 29 20 7b 0a 20 20 20 20 20 20  short)) {.      
0c50: 20 20 69 72 65 74 20 3d 20 2a 28 75 6e 73 69 67    iret = *(unsig
0c60: 6e 65 64 20 73 68 6f 72 74 20 2a 29 20 6c 69 73  ned short *) lis
0c70: 74 2e 72 61 64 64 72 3b 0a 20 20 20 20 20 20 20  t.raddr;.       
0c80: 20 67 6f 74 6f 20 64 6f 6e 65 3b 0a 20 20 20 20   goto done;.    
0c90: 20 20 7d 20 65 6c 73 65 0a 20 20 20 20 20 20 69    } else.      i
0ca0: 66 20 28 6c 69 73 74 2e 72 73 69 7a 65 20 3d 3d  f (list.rsize ==
0cb0: 20 73 69 7a 65 6f 66 28 69 6e 74 29 29 20 7b 0a   sizeof(int)) {.
0cc0: 20 20 20 20 20 20 20 20 69 72 65 74 20 3d 20 2a          iret = *
0cd0: 28 75 6e 73 69 67 6e 65 64 20 69 6e 74 20 2a 29  (unsigned int *)
0ce0: 20 6c 69 73 74 2e 72 61 64 64 72 3b 0a 20 20 20   list.raddr;.   
0cf0: 20 20 20 20 20 67 6f 74 6f 20 64 6f 6e 65 3b 0a       goto done;.
0d00: 20 20 20 20 20 20 7d 20 65 6c 73 65 0a 20 20 20        } else.   
0d10: 20 20 20 69 66 20 28 6c 69 73 74 2e 72 73 69 7a     if (list.rsiz
0d20: 65 20 3d 3d 20 32 2a 73 69 7a 65 6f 66 28 5f 5f  e == 2*sizeof(__
0d30: 76 61 77 6f 72 64 29 29 20 7b 0a 20 20 20 20 20  vaword)) {.     
0d40: 20 20 20 69 72 65 74 20 20 3d 20 28 28 5f 5f 76     iret  = ((__v
0d50: 61 77 6f 72 64 20 2a 29 20 6c 69 73 74 2e 72 61  aword *) list.ra
0d60: 64 64 72 29 5b 30 5d 3b 0a 20 20 20 20 20 20 20  ddr)[0];.       
0d70: 20 69 72 65 74 32 20 3d 20 28 28 5f 5f 76 61 77   iret2 = ((__vaw
0d80: 6f 72 64 20 2a 29 20 6c 69 73 74 2e 72 61 64 64  ord *) list.radd
0d90: 72 29 5b 31 5d 3b 0a 20 20 20 20 20 20 20 20 67  r)[1];.        g
0da0: 6f 74 6f 20 64 6f 6e 65 3b 0a 20 20 20 20 20 20  oto done;.      
0db0: 7d 0a 20 20 20 20 7d 0a 20 20 20 20 69 66 20 28  }.    }.    if (
0dc0: 6c 69 73 74 2e 66 6c 61 67 73 20 26 20 5f 5f 56  list.flags & __V
0dd0: 41 5f 50 43 43 5f 53 54 52 55 43 54 5f 52 45 54  A_PCC_STRUCT_RET
0de0: 55 52 4e 29 20 7b 0a 20 20 20 20 20 20 2f 2a 20  URN) {.      /* 
0df0: 70 63 63 20 73 74 72 75 63 74 20 72 65 74 75 72  pcc struct retur
0e00: 6e 20 63 6f 6e 76 65 6e 74 69 6f 6e 20 2a 2f 0a  n convention */.
0e10: 20 20 20 20 20 20 70 72 65 74 20 3d 20 69 72 65        pret = ire
0e20: 74 20 3d 20 28 6c 6f 6e 67 29 20 6c 69 73 74 2e  t = (long) list.
0e30: 72 61 64 64 72 3b 0a 20 20 20 20 7d 20 65 6c 73  raddr;.    } els
0e40: 65 20 7b 0a 20 20 20 20 20 20 2f 2a 20 6e 6f 72  e {.      /* nor
0e50: 6d 61 6c 20 73 74 72 75 63 74 20 72 65 74 75 72  mal struct retur
0e60: 6e 20 63 6f 6e 76 65 6e 74 69 6f 6e 20 2a 2f 0a  n convention */.
0e70: 20 20 20 20 7d 0a 20 20 20 20 64 6f 6e 65 3a 20      }.    done: 
0e80: 3b 0a 20 20 7d 0a 7d 0a                          ;.  }.}.