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 */
|
2001-12-07 05:41:02 -08:00
|
|
|
/* under the terms of the GNU Library General Public License, with */
|
|
|
|
/* the special exception on linking described in file ../LICENSE. */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Asm part of the runtime system, Mips processor, IRIX n32 conventions */
|
1995-07-12 07:27:10 -07:00
|
|
|
|
|
|
|
/* Allocation */
|
|
|
|
|
|
|
|
.text
|
1998-11-18 10:10:53 -08:00
|
|
|
|
1997-02-03 02:14:54 -08:00
|
|
|
.globl caml_call_gc
|
1997-02-01 09:40:41 -08:00
|
|
|
.ent caml_call_gc
|
|
|
|
|
|
|
|
caml_call_gc:
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Reserve stack space for registers and saved $gp */
|
|
|
|
/* 32 * 8 = 0x100 for float regs
|
|
|
|
22 * 4 = 0x58 for integer regs
|
|
|
|
8 = 0x8 for saved $gp ====> 0x160 total */
|
|
|
|
subu $sp, $sp, 0x160
|
|
|
|
/* Reinit $gp */
|
|
|
|
.cpsetup $25, 0x158, caml_call_gc
|
1997-02-01 09:40:41 -08:00
|
|
|
/* Record return address */
|
1995-07-12 07:27:10 -07:00
|
|
|
sw $31, caml_last_return_address
|
1997-02-01 09:40:41 -08:00
|
|
|
/* Record lowest stack address */
|
1998-11-18 10:10:53 -08:00
|
|
|
addu $24, $sp, 0x160
|
|
|
|
sw $24, caml_bottom_of_stack
|
1997-11-27 08:28:40 -08:00
|
|
|
/* Save pointer to register array */
|
1998-11-18 10:10:53 -08:00
|
|
|
addu $24, $sp, 0x100
|
1997-11-27 08:28:40 -08:00
|
|
|
sw $24, caml_gc_regs
|
1995-07-12 07:27:10 -07:00
|
|
|
/* Save current allocation pointer for debugging purposes */
|
2003-12-31 06:20:40 -08:00
|
|
|
sw $22, caml_young_ptr
|
1996-02-01 07:02:04 -08:00
|
|
|
/* Save the exception handler (if e.g. a sighandler raises) */
|
|
|
|
sw $30, caml_exception_pointer
|
1997-11-27 08:28:40 -08:00
|
|
|
/* Save all regs used by the code generator on the stack */
|
|
|
|
sw $2, 2 * 4($24)
|
|
|
|
sw $3, 3 * 4($24)
|
|
|
|
sw $4, 4 * 4($24)
|
|
|
|
sw $5, 5 * 4($24)
|
|
|
|
sw $6, 6 * 4($24)
|
|
|
|
sw $7, 7 * 4($24)
|
|
|
|
sw $8, 8 * 4($24)
|
|
|
|
sw $9, 9 * 4($24)
|
|
|
|
sw $10, 10 * 4($24)
|
|
|
|
sw $11, 11 * 4($24)
|
|
|
|
sw $12, 12 * 4($24)
|
|
|
|
sw $13, 13 * 4($24)
|
|
|
|
sw $14, 14 * 4($24)
|
|
|
|
sw $15, 15 * 4($24)
|
|
|
|
sw $16, 16 * 4($24)
|
|
|
|
sw $17, 17 * 4($24)
|
|
|
|
sw $18, 18 * 4($24)
|
|
|
|
sw $19, 19 * 4($24)
|
|
|
|
sw $20, 20 * 4($24)
|
|
|
|
sw $21, 21 * 4($24)
|
2000-04-05 11:30:22 -07:00
|
|
|
s.d $f0, 0 * 8($sp)
|
|
|
|
s.d $f1, 1 * 8($sp)
|
|
|
|
s.d $f2, 2 * 8($sp)
|
|
|
|
s.d $f3, 3 * 8($sp)
|
|
|
|
s.d $f4, 4 * 8($sp)
|
|
|
|
s.d $f5, 5 * 8($sp)
|
|
|
|
s.d $f6, 6 * 8($sp)
|
|
|
|
s.d $f7, 7 * 8($sp)
|
|
|
|
s.d $f8, 8 * 8($sp)
|
|
|
|
s.d $f9, 9 * 8($sp)
|
|
|
|
s.d $f10, 10 * 8($sp)
|
|
|
|
s.d $f11, 11 * 8($sp)
|
|
|
|
s.d $f12, 12 * 8($sp)
|
|
|
|
s.d $f13, 13 * 8($sp)
|
|
|
|
s.d $f14, 14 * 8($sp)
|
|
|
|
s.d $f15, 15 * 8($sp)
|
|
|
|
s.d $f16, 16 * 8($sp)
|
|
|
|
s.d $f17, 17 * 8($sp)
|
|
|
|
s.d $f18, 18 * 8($sp)
|
|
|
|
s.d $f19, 19 * 8($sp)
|
|
|
|
s.d $f20, 20 * 8($sp)
|
|
|
|
s.d $f21, 21 * 8($sp)
|
|
|
|
s.d $f22, 22 * 8($sp)
|
|
|
|
s.d $f23, 23 * 8($sp)
|
|
|
|
s.d $f24, 24 * 8($sp)
|
|
|
|
s.d $f25, 25 * 8($sp)
|
|
|
|
s.d $f26, 26 * 8($sp)
|
|
|
|
s.d $f27, 27 * 8($sp)
|
|
|
|
s.d $f28, 28 * 8($sp)
|
|
|
|
s.d $f29, 29 * 8($sp)
|
|
|
|
s.d $f30, 30 * 8($sp)
|
|
|
|
s.d $f31, 31 * 8($sp)
|
1995-07-12 07:27:10 -07:00
|
|
|
/* Call the garbage collector */
|
1995-12-21 06:21:11 -08:00
|
|
|
jal garbage_collection
|
1995-07-12 07:27:10 -07:00
|
|
|
/* Restore all regs used by the code generator */
|
1998-11-18 10:10:53 -08:00
|
|
|
addu $24, $sp, 0x100
|
1997-11-27 08:28:40 -08:00
|
|
|
lw $2, 2 * 4($24)
|
|
|
|
lw $3, 3 * 4($24)
|
|
|
|
lw $4, 4 * 4($24)
|
|
|
|
lw $5, 5 * 4($24)
|
|
|
|
lw $6, 6 * 4($24)
|
|
|
|
lw $7, 7 * 4($24)
|
|
|
|
lw $8, 8 * 4($24)
|
|
|
|
lw $9, 9 * 4($24)
|
|
|
|
lw $10, 10 * 4($24)
|
|
|
|
lw $11, 11 * 4($24)
|
|
|
|
lw $12, 12 * 4($24)
|
|
|
|
lw $13, 13 * 4($24)
|
|
|
|
lw $14, 14 * 4($24)
|
|
|
|
lw $15, 15 * 4($24)
|
|
|
|
lw $16, 16 * 4($24)
|
|
|
|
lw $17, 17 * 4($24)
|
|
|
|
lw $18, 18 * 4($24)
|
|
|
|
lw $19, 19 * 4($24)
|
|
|
|
lw $20, 20 * 4($24)
|
|
|
|
lw $21, 21 * 4($24)
|
2000-04-05 11:30:22 -07:00
|
|
|
l.d $f0, 0 * 8($sp)
|
|
|
|
l.d $f1, 1 * 8($sp)
|
|
|
|
l.d $f2, 2 * 8($sp)
|
|
|
|
l.d $f3, 3 * 8($sp)
|
|
|
|
l.d $f4, 4 * 8($sp)
|
|
|
|
l.d $f5, 5 * 8($sp)
|
|
|
|
l.d $f6, 6 * 8($sp)
|
|
|
|
l.d $f7, 7 * 8($sp)
|
|
|
|
l.d $f8, 8 * 8($sp)
|
|
|
|
l.d $f9, 9 * 8($sp)
|
|
|
|
l.d $f10, 10 * 8($sp)
|
|
|
|
l.d $f11, 11 * 8($sp)
|
|
|
|
l.d $f12, 12 * 8($sp)
|
|
|
|
l.d $f13, 13 * 8($sp)
|
|
|
|
l.d $f14, 14 * 8($sp)
|
|
|
|
l.d $f15, 15 * 8($sp)
|
|
|
|
l.d $f16, 16 * 8($sp)
|
|
|
|
l.d $f17, 17 * 8($sp)
|
|
|
|
l.d $f18, 18 * 8($sp)
|
|
|
|
l.d $f19, 19 * 8($sp)
|
|
|
|
l.d $f20, 20 * 8($sp)
|
|
|
|
l.d $f21, 21 * 8($sp)
|
|
|
|
l.d $f22, 22 * 8($sp)
|
|
|
|
l.d $f23, 23 * 8($sp)
|
|
|
|
l.d $f24, 24 * 8($sp)
|
|
|
|
l.d $f25, 25 * 8($sp)
|
|
|
|
l.d $f26, 26 * 8($sp)
|
|
|
|
l.d $f27, 27 * 8($sp)
|
|
|
|
l.d $f28, 28 * 8($sp)
|
|
|
|
l.d $f29, 29 * 8($sp)
|
|
|
|
l.d $f30, 30 * 8($sp)
|
|
|
|
l.d $f31, 31 * 8($sp)
|
1995-07-12 07:27:10 -07:00
|
|
|
/* Reload new allocation pointer and allocation limit */
|
2003-12-31 06:20:40 -08:00
|
|
|
lw $22, caml_young_ptr
|
|
|
|
lw $23, caml_young_limit
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Reload return address */
|
|
|
|
lw $31, caml_last_return_address
|
1995-12-21 06:21:11 -08:00
|
|
|
/* Say that we are back into Caml code */
|
1997-11-27 08:36:35 -08:00
|
|
|
sw $0, caml_last_return_address
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Adjust return address to restart the allocation sequence */
|
|
|
|
subu $31, $31, 16
|
|
|
|
/* Return */
|
|
|
|
.cpreturn
|
|
|
|
addu $sp, $sp, 0x160
|
1995-07-12 07:27:10 -07:00
|
|
|
j $31
|
|
|
|
|
1997-02-01 09:40:41 -08:00
|
|
|
.end caml_call_gc
|
1995-07-12 07:27:10 -07:00
|
|
|
|
|
|
|
/* Call a C function from Caml */
|
|
|
|
|
|
|
|
.globl caml_c_call
|
|
|
|
.ent caml_c_call
|
|
|
|
|
|
|
|
caml_c_call:
|
1997-02-01 09:40:41 -08:00
|
|
|
/* Function to call is in $24 */
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Set up $gp, saving caller's $gp in callee-save register $19 */
|
|
|
|
.cpsetup $25, $19, caml_c_call
|
2000-04-05 11:30:22 -07:00
|
|
|
/* Preload addresses of interesting global variables
|
1998-11-18 10:10:53 -08:00
|
|
|
in callee-save registers */
|
1997-05-19 08:42:21 -07:00
|
|
|
la $16, caml_last_return_address
|
2003-12-31 06:20:40 -08:00
|
|
|
la $17, caml_young_ptr
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Save return address, bottom of stack, alloc ptr, exn ptr */
|
1997-05-19 08:42:21 -07:00
|
|
|
sw $31, 0($16) /* caml_last_return_address */
|
1997-02-03 06:41:42 -08:00
|
|
|
sw $sp, caml_bottom_of_stack
|
2003-12-31 06:20:40 -08:00
|
|
|
sw $22, 0($17) /* caml_young_ptr */
|
1997-02-03 06:41:42 -08:00
|
|
|
sw $30, caml_exception_pointer
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Call C function */
|
1997-02-03 06:41:42 -08:00
|
|
|
move $25, $24
|
|
|
|
jal $24
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Reload return address, alloc ptr, alloc limit */
|
1997-05-19 08:42:21 -07:00
|
|
|
lw $31, 0($16) /* caml_last_return_address */
|
2003-12-31 06:20:40 -08:00
|
|
|
lw $22, 0($17) /* caml_young_ptr */
|
|
|
|
lw $23, caml_young_limit /* caml_young_limit */
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Zero caml_last_return_address, indicating we're back in Caml code */
|
1997-05-19 08:42:21 -07:00
|
|
|
sw $0, 0($16) /* caml_last_return_address */
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Restore $gp and return */
|
|
|
|
move $gp, $19
|
1997-02-03 06:41:42 -08:00
|
|
|
j $31
|
1995-07-12 07:27:10 -07:00
|
|
|
.end caml_c_call
|
|
|
|
|
|
|
|
/* Start the Caml program */
|
|
|
|
|
|
|
|
.globl caml_start_program
|
|
|
|
.globl stray_exn_handler
|
|
|
|
.ent caml_start_program
|
|
|
|
caml_start_program:
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Reserve space for callee-save registers */
|
|
|
|
subu $sp, $sp, 0x90
|
|
|
|
/* Setup $gp */
|
|
|
|
.cpsetup $25, 0x80, caml_start_program
|
|
|
|
/* Load in $24 the code address to call */
|
2000-04-05 11:30:22 -07:00
|
|
|
la $24, caml_program
|
2003-12-31 06:20:40 -08:00
|
|
|
/* Code shared with caml_callback* */
|
1995-12-04 02:02:14 -08:00
|
|
|
$103:
|
|
|
|
/* Save return address */
|
1998-11-18 10:10:53 -08:00
|
|
|
sd $31, 0x88($sp)
|
1995-12-04 02:02:14 -08:00
|
|
|
/* Save all callee-save registers */
|
1998-11-18 10:10:53 -08:00
|
|
|
sd $16, 0x0($sp)
|
|
|
|
sd $17, 0x8($sp)
|
|
|
|
sd $18, 0x10($sp)
|
|
|
|
sd $19, 0x18($sp)
|
|
|
|
sd $20, 0x20($sp)
|
|
|
|
sd $21, 0x28($sp)
|
|
|
|
sd $22, 0x30($sp)
|
|
|
|
sd $23, 0x38($sp)
|
|
|
|
sd $30, 0x40($sp)
|
|
|
|
s.d $f20, 0x48($sp)
|
|
|
|
s.d $f22, 0x50($sp)
|
|
|
|
s.d $f24, 0x58($sp)
|
|
|
|
s.d $f26, 0x60($sp)
|
|
|
|
s.d $f28, 0x68($sp)
|
|
|
|
s.d $f30, 0x70($sp)
|
1996-01-07 08:58:44 -08:00
|
|
|
/* Set up a callback link on the stack. */
|
1997-11-27 08:28:40 -08:00
|
|
|
subu $sp, $sp, 16
|
1996-01-07 08:58:44 -08:00
|
|
|
lw $2, caml_bottom_of_stack
|
|
|
|
sw $2, 0($sp)
|
|
|
|
lw $3, caml_last_return_address
|
|
|
|
sw $3, 4($sp)
|
1997-11-27 08:28:40 -08:00
|
|
|
lw $4, caml_gc_regs
|
|
|
|
sw $4, 8($sp)
|
1995-12-04 02:02:14 -08:00
|
|
|
/* Set up a trap frame to catch exceptions escaping the Caml code */
|
1998-11-18 10:10:53 -08:00
|
|
|
subu $sp, $sp, 16
|
1995-12-04 02:02:14 -08:00
|
|
|
lw $30, caml_exception_pointer
|
|
|
|
sw $30, 0($sp)
|
|
|
|
la $2, $105
|
|
|
|
sw $2, 4($sp)
|
1998-11-18 10:10:53 -08:00
|
|
|
sw $gp, 8($sp)
|
1995-12-04 02:02:14 -08:00
|
|
|
move $30, $sp
|
|
|
|
/* Reload allocation pointers */
|
2003-12-31 06:20:40 -08:00
|
|
|
lw $22, caml_young_ptr
|
|
|
|
lw $23, caml_young_limit
|
1995-12-21 06:21:11 -08:00
|
|
|
/* Say that we are back into Caml code */
|
1997-11-27 08:36:35 -08:00
|
|
|
sw $0, caml_last_return_address
|
1995-12-04 02:02:14 -08:00
|
|
|
/* Call the Caml code */
|
1997-02-01 09:40:41 -08:00
|
|
|
move $25, $24
|
2000-04-05 11:30:22 -07:00
|
|
|
jal $24
|
1998-11-18 10:10:53 -08:00
|
|
|
$104:
|
1996-01-07 08:58:44 -08:00
|
|
|
/* Pop the trap frame, restoring caml_exception_pointer */
|
|
|
|
lw $24, 0($sp)
|
|
|
|
sw $24, caml_exception_pointer
|
1998-11-18 10:10:53 -08:00
|
|
|
addu $sp, $sp, 16
|
1999-02-14 08:48:25 -08:00
|
|
|
$106:
|
1997-11-27 08:28:40 -08:00
|
|
|
/* Pop the callback link, restoring the global variables */
|
1995-12-04 02:02:14 -08:00
|
|
|
lw $24, 0($sp)
|
|
|
|
sw $24, caml_bottom_of_stack
|
|
|
|
lw $25, 4($sp)
|
|
|
|
sw $25, caml_last_return_address
|
1997-11-27 08:28:40 -08:00
|
|
|
lw $24, 8($sp)
|
|
|
|
sw $24, caml_gc_regs
|
|
|
|
addu $sp, $sp, 16
|
1995-12-04 02:02:14 -08:00
|
|
|
/* Update allocation pointer */
|
2003-12-31 06:20:40 -08:00
|
|
|
sw $22, caml_young_ptr
|
1995-12-04 02:02:14 -08:00
|
|
|
/* Reload callee-save registers and return */
|
1998-11-18 10:10:53 -08:00
|
|
|
ld $31, 0x88($sp)
|
|
|
|
ld $16, 0x0($sp)
|
|
|
|
ld $17, 0x8($sp)
|
|
|
|
ld $18, 0x10($sp)
|
|
|
|
ld $19, 0x18($sp)
|
|
|
|
ld $20, 0x20($sp)
|
|
|
|
ld $21, 0x28($sp)
|
|
|
|
ld $22, 0x30($sp)
|
|
|
|
ld $23, 0x38($sp)
|
|
|
|
ld $30, 0x40($sp)
|
|
|
|
l.d $f20, 0x48($sp)
|
|
|
|
l.d $f22, 0x50($sp)
|
|
|
|
l.d $f24, 0x58($sp)
|
|
|
|
l.d $f26, 0x60($sp)
|
|
|
|
l.d $f28, 0x68($sp)
|
|
|
|
l.d $f30, 0x70($sp)
|
|
|
|
.cpreturn
|
|
|
|
addu $sp, $sp, 0x90
|
1995-12-04 02:02:14 -08:00
|
|
|
j $31
|
2000-04-05 11:30:22 -07:00
|
|
|
|
1999-02-14 08:48:25 -08:00
|
|
|
/* The trap handler: encode exception bucket as an exception result
|
|
|
|
and return it */
|
1995-12-04 02:02:14 -08:00
|
|
|
$105:
|
|
|
|
sw $30, caml_exception_pointer
|
1999-02-14 08:48:25 -08:00
|
|
|
or $2, $2, 2
|
|
|
|
b $106
|
1995-12-04 02:02:14 -08:00
|
|
|
|
1997-03-17 02:17:32 -08:00
|
|
|
.end caml_start_program
|
|
|
|
|
|
|
|
/* Raise an exception from C */
|
|
|
|
|
|
|
|
.globl raise_caml_exception
|
|
|
|
.ent raise_caml_exception
|
|
|
|
raise_caml_exception:
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Setup $gp, discarding caller's $gp (we won't return) */
|
|
|
|
.cpsetup $25, $24, raise_caml_exception
|
|
|
|
/* Branch to exn handler */
|
1997-03-17 02:17:32 -08:00
|
|
|
move $2, $4
|
2003-12-31 06:20:40 -08:00
|
|
|
lw $22, caml_young_ptr
|
|
|
|
lw $23, caml_young_limit
|
1997-03-17 02:17:32 -08:00
|
|
|
lw $sp, caml_exception_pointer
|
|
|
|
lw $30, 0($sp)
|
|
|
|
lw $24, 4($sp)
|
1998-11-18 10:10:53 -08:00
|
|
|
lw $gp, 8($sp)
|
|
|
|
addu $sp, $sp, 16
|
1997-03-17 02:17:32 -08:00
|
|
|
j $24
|
|
|
|
|
|
|
|
.end raise_caml_exception
|
|
|
|
|
|
|
|
/* Callback from C to Caml */
|
|
|
|
|
2003-12-31 06:20:40 -08:00
|
|
|
.globl caml_callback_exn
|
|
|
|
.ent caml_callback_exn
|
|
|
|
caml_callback_exn:
|
1998-11-18 10:10:53 -08:00
|
|
|
subu $sp, $sp, 0x90
|
2003-12-31 06:20:40 -08:00
|
|
|
.cpsetup $25, 0x80, caml_callback_exn
|
1997-03-17 02:17:32 -08:00
|
|
|
/* Initial shuffling of arguments */
|
|
|
|
move $9, $4 /* closure */
|
|
|
|
move $8, $5 /* argument */
|
|
|
|
lw $24, 0($4) /* code pointer */
|
|
|
|
b $103
|
2003-12-31 06:20:40 -08:00
|
|
|
.end caml_callback_exn
|
1995-12-04 02:02:14 -08:00
|
|
|
|
2003-12-31 06:20:40 -08:00
|
|
|
.globl caml_callback2_exn
|
|
|
|
.ent caml_callback2_exn
|
|
|
|
caml_callback2_exn:
|
1998-11-18 10:10:53 -08:00
|
|
|
subu $sp, $sp, 0x90
|
2003-12-31 06:20:40 -08:00
|
|
|
.cpsetup $25, 0x80, caml_callback2_exn
|
1995-12-04 02:02:14 -08:00
|
|
|
/* Initial shuffling of arguments */
|
|
|
|
move $10, $4 /* closure */
|
|
|
|
move $8, $5 /* first argument */
|
|
|
|
move $9, $6 /* second argument */
|
|
|
|
la $24, caml_apply2 /* code pointer */
|
|
|
|
b $103
|
|
|
|
|
2003-12-31 06:20:40 -08:00
|
|
|
.end caml_callback2_exn
|
1995-12-04 02:02:14 -08:00
|
|
|
|
2003-12-31 06:20:40 -08:00
|
|
|
.globl caml_callback3_exn
|
|
|
|
.ent caml_callback3_exn
|
|
|
|
caml_callback3_exn:
|
1998-11-18 10:10:53 -08:00
|
|
|
subu $sp, $sp, 0x90
|
2003-12-31 06:20:40 -08:00
|
|
|
.cpsetup $25, 0x80, caml_callback3_exn
|
1995-12-04 02:02:14 -08:00
|
|
|
/* Initial shuffling of arguments */
|
|
|
|
move $11, $4 /* closure */
|
|
|
|
move $8, $5 /* first argument */
|
|
|
|
move $9, $6 /* second argument */
|
|
|
|
move $10, $7 /* third argument */
|
|
|
|
la $24, caml_apply3 /* code pointer */
|
|
|
|
b $103
|
|
|
|
|
2003-12-31 06:20:40 -08:00
|
|
|
.end caml_callback3_exn
|
1995-12-04 02:02:14 -08:00
|
|
|
|
1998-11-11 07:35:48 -08:00
|
|
|
/* Glue code to call array_bound_error */
|
|
|
|
|
|
|
|
.globl caml_array_bound_error
|
|
|
|
.ent caml_array_bound_error
|
|
|
|
|
|
|
|
caml_array_bound_error:
|
1998-11-18 10:10:53 -08:00
|
|
|
/* Setup $gp, discarding caller's $gp (we won't return) */
|
|
|
|
.cpsetup $25, $24, caml_array_bound_error
|
1998-11-11 07:35:48 -08:00
|
|
|
la $24, array_bound_error
|
1998-11-13 03:05:38 -08:00
|
|
|
jal caml_c_call /* never returns */
|
1998-11-18 10:10:53 -08:00
|
|
|
|
1998-11-11 07:35:48 -08:00
|
|
|
.end caml_array_bound_error
|
|
|
|
|
1995-12-04 02:02:14 -08:00
|
|
|
.rdata
|
2002-02-08 08:55:44 -08:00
|
|
|
.globl system__frametable
|
|
|
|
system__frametable:
|
1995-12-04 02:02:14 -08:00
|
|
|
.word 1 /* one descriptor */
|
1998-11-18 10:10:53 -08:00
|
|
|
.word $104 /* return address into callback */
|
1995-12-04 02:02:14 -08:00
|
|
|
.half -1 /* negative frame size => use callback link */
|
|
|
|
.half 0 /* no roots here */
|