1995-08-09 08:06:35 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Objective Caml */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Copyright 1996 Institut National de Recherche en Informatique et */
|
1999-11-17 10:59:06 -08:00
|
|
|
/* en Automatique. All rights reserved. This file is distributed */
|
|
|
|
/* under the terms of the Q Public License version 1.0. */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1996-04-18 09:34:37 -07:00
|
|
|
#ifndef SYS_solaris
|
1996-03-11 05:31:58 -08:00
|
|
|
#define Call_gen_code _call_gen_code
|
|
|
|
#define Caml_c_call _caml_c_call
|
|
|
|
#else
|
|
|
|
#define Call_gen_code call_gen_code
|
|
|
|
#define Caml_c_call caml_c_call
|
|
|
|
#endif
|
|
|
|
|
|
|
|
.global Call_gen_code
|
|
|
|
Call_gen_code:
|
1995-06-15 01:17:29 -07:00
|
|
|
save %sp, -96, %sp
|
|
|
|
mov %i0, %l0
|
|
|
|
mov %i1, %i0
|
|
|
|
mov %i2, %i1
|
|
|
|
mov %i3, %i2
|
|
|
|
mov %i4, %i3
|
|
|
|
mov %i5, %i4
|
|
|
|
call %l0
|
|
|
|
nop
|
|
|
|
mov %o0, %i0
|
|
|
|
ret
|
|
|
|
restore
|
|
|
|
|
1996-03-11 05:31:58 -08:00
|
|
|
.global Caml_c_call
|
|
|
|
Caml_c_call:
|
1995-08-24 08:12:05 -07:00
|
|
|
jmp %g4
|
1995-06-15 01:17:29 -07:00
|
|
|
nop
|