1
#*********************************************************************
5
#* Xavier Leroy, projet Cristal, INRIA Rocquencourt *
7
#* Copyright 1996 Institut National de Recherche en Informatique et *
8
#* en Automatique. All rights reserved. This file is distributed *
9
#* under the terms of the Q Public License version 1.0. *
11
#*********************************************************************
13
# $Id: power-aix.S 3042 2000-04-05 18:30:22Z doligez $
22
# Save all callee-save registers
60
# Allocate and link stack frame
75
# Restore global pointer
77
# Deallocate stack frame
79
# Restore callee-save registers
117
# Reload return address
125
# Preserve RTOC and return address in callee-save registers
126
# The C function will preserve them, and the Caml code does not
127
# expect them to be preserved
128
# Return address is in 25, RTOC is in 26
131
# Call desired function (descriptor in r11)
136
# Restore return address and RTOC
145
.csect call_gen_code[DS]
147
.long .call_gen_code, TOC[tc0], 0
150
.csect caml_c_call[DS]
152
.long .caml_c_call, TOC[tc0], 0