|
|
0c4d3e |
From 2e4038b6b8073f55012613f18cb19a4c99e8219d Mon Sep 17 00:00:00 2001
|
|
|
0c4d3e |
From: Nicolas Ojeda Bar <n.oje.bar@gmail.com>
|
|
|
0c4d3e |
Date: Fri, 1 Dec 2017 14:39:46 +0100
|
|
|
0c4d3e |
Subject: [PATCH 5/8] Copyright, untabify
|
|
|
0c4d3e |
|
|
|
0c4d3e |
---
|
|
|
0c4d3e |
asmrun/riscv.S | 608 ++++++++++++++++++++++++-------------------------
|
|
|
0c4d3e |
1 file changed, 304 insertions(+), 304 deletions(-)
|
|
|
0c4d3e |
|
|
|
0c4d3e |
diff --git a/asmrun/riscv.S b/asmrun/riscv.S
|
|
|
0c4d3e |
index a82048efc..88d7ab924 100644
|
|
|
0c4d3e |
--- a/asmrun/riscv.S
|
|
|
0c4d3e |
+++ b/asmrun/riscv.S
|
|
|
0c4d3e |
@@ -4,7 +4,7 @@
|
|
|
0c4d3e |
/* */
|
|
|
0c4d3e |
/* Nicolas Ojeda Bar <n.oje.bar@gmail.com> */
|
|
|
0c4d3e |
/* */
|
|
|
0c4d3e |
-/* Copyright 1996 Institut National de Recherche en Informatique et */
|
|
|
0c4d3e |
+/* Copyright 2017 Institut National de Recherche en Informatique et */
|
|
|
0c4d3e |
/* en Automatique. All rights reserved. This file is distributed */
|
|
|
0c4d3e |
/* under the terms of the GNU Library General Public License, with */
|
|
|
0c4d3e |
/* the special exception on linking described in file ../LICENSE. */
|
|
|
0c4d3e |
@@ -37,388 +37,388 @@
|
|
|
0c4d3e |
.option nopic
|
|
|
0c4d3e |
#endif
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .section .text
|
|
|
0c4d3e |
+ .section .text
|
|
|
0c4d3e |
/* Invoke the garbage collector. */
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .globl caml_system__code_begin
|
|
|
0c4d3e |
+ .globl caml_system__code_begin
|
|
|
0c4d3e |
caml_system__code_begin:
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .align 2
|
|
|
0c4d3e |
- .globl caml_call_gc
|
|
|
0c4d3e |
- .type caml_call_gc, @function
|
|
|
0c4d3e |
+ .align 2
|
|
|
0c4d3e |
+ .globl caml_call_gc
|
|
|
0c4d3e |
+ .type caml_call_gc, @function
|
|
|
0c4d3e |
caml_call_gc:
|
|
|
0c4d3e |
/* Record return address */
|
|
|
0c4d3e |
- store ra, caml_last_return_address, TMP0
|
|
|
0c4d3e |
+ store ra, caml_last_return_address, TMP0
|
|
|
0c4d3e |
/* Record lowest stack address */
|
|
|
0c4d3e |
- mv TMP1, sp
|
|
|
0c4d3e |
- store sp, caml_bottom_of_stack, TMP0
|
|
|
0c4d3e |
+ mv TMP1, sp
|
|
|
0c4d3e |
+ store sp, caml_bottom_of_stack, TMP0
|
|
|
0c4d3e |
.Lcaml_call_gc:
|
|
|
0c4d3e |
- /* Set up stack space, saving return address */
|
|
|
0c4d3e |
+ /* Set up stack space, saving return address */
|
|
|
0c4d3e |
/* (1 reg for RA, 1 reg for FP, 21 allocatable int regs, 20 caller-save float regs) * 8 */
|
|
|
0c4d3e |
/* + 1 for alignment */
|
|
|
0c4d3e |
- addi sp, sp, -0x160
|
|
|
0c4d3e |
- mv s0, sp
|
|
|
0c4d3e |
- store ra, 0x8(sp)
|
|
|
0c4d3e |
- store s0, 0x0(sp)
|
|
|
0c4d3e |
+ addi sp, sp, -0x160
|
|
|
0c4d3e |
+ mv s0, sp
|
|
|
0c4d3e |
+ store ra, 0x8(sp)
|
|
|
0c4d3e |
+ store s0, 0x0(sp)
|
|
|
0c4d3e |
/* Save allocatable integer registers on the stack,
|
|
|
0c4d3e |
in the order given in proc.ml */
|
|
|
0c4d3e |
- store a0, 0x10(sp)
|
|
|
0c4d3e |
- store a1, 0x18(sp)
|
|
|
0c4d3e |
- store a2, 0x20(sp)
|
|
|
0c4d3e |
- store a3, 0x28(sp)
|
|
|
0c4d3e |
- store a4, 0x30(sp)
|
|
|
0c4d3e |
- store a5, 0x38(sp)
|
|
|
0c4d3e |
- store a6, 0x40(sp)
|
|
|
0c4d3e |
- store a7, 0x48(sp)
|
|
|
0c4d3e |
- store s2, 0x50(sp)
|
|
|
0c4d3e |
- store s3, 0x58(sp)
|
|
|
0c4d3e |
- store s4, 0x60(sp)
|
|
|
0c4d3e |
- store s5, 0x68(sp)
|
|
|
0c4d3e |
- store s6, 0x70(sp)
|
|
|
0c4d3e |
- store s7, 0x78(sp)
|
|
|
0c4d3e |
- store s8, 0x80(sp)
|
|
|
0c4d3e |
- store s9, 0x88(sp)
|
|
|
0c4d3e |
- store t2, 0x90(sp)
|
|
|
0c4d3e |
- store t3, 0x98(sp)
|
|
|
0c4d3e |
- store t4, 0xa0(sp)
|
|
|
0c4d3e |
- store t5, 0xa8(sp)
|
|
|
0c4d3e |
- store t6, 0xb0(sp)
|
|
|
0c4d3e |
+ store a0, 0x10(sp)
|
|
|
0c4d3e |
+ store a1, 0x18(sp)
|
|
|
0c4d3e |
+ store a2, 0x20(sp)
|
|
|
0c4d3e |
+ store a3, 0x28(sp)
|
|
|
0c4d3e |
+ store a4, 0x30(sp)
|
|
|
0c4d3e |
+ store a5, 0x38(sp)
|
|
|
0c4d3e |
+ store a6, 0x40(sp)
|
|
|
0c4d3e |
+ store a7, 0x48(sp)
|
|
|
0c4d3e |
+ store s2, 0x50(sp)
|
|
|
0c4d3e |
+ store s3, 0x58(sp)
|
|
|
0c4d3e |
+ store s4, 0x60(sp)
|
|
|
0c4d3e |
+ store s5, 0x68(sp)
|
|
|
0c4d3e |
+ store s6, 0x70(sp)
|
|
|
0c4d3e |
+ store s7, 0x78(sp)
|
|
|
0c4d3e |
+ store s8, 0x80(sp)
|
|
|
0c4d3e |
+ store s9, 0x88(sp)
|
|
|
0c4d3e |
+ store t2, 0x90(sp)
|
|
|
0c4d3e |
+ store t3, 0x98(sp)
|
|
|
0c4d3e |
+ store t4, 0xa0(sp)
|
|
|
0c4d3e |
+ store t5, 0xa8(sp)
|
|
|
0c4d3e |
+ store t6, 0xb0(sp)
|
|
|
0c4d3e |
/* Save caller-save floating-point registers on the stack
|
|
|
0c4d3e |
(callee-saves are preserved by caml_garbage_collection) */
|
|
|
0c4d3e |
- fsd ft0, 0xb8(sp)
|
|
|
0c4d3e |
- fsd ft1, 0xc0(sp)
|
|
|
0c4d3e |
- fsd ft2, 0xc8(sp)
|
|
|
0c4d3e |
- fsd ft3, 0xd0(sp)
|
|
|
0c4d3e |
- fsd ft4, 0xd8(sp)
|
|
|
0c4d3e |
- fsd ft5, 0xe0(sp)
|
|
|
0c4d3e |
- fsd ft6, 0xe8(sp)
|
|
|
0c4d3e |
- fsd ft7, 0xf0(sp)
|
|
|
0c4d3e |
- fsd fa0, 0xf8(sp)
|
|
|
0c4d3e |
- fsd fa1, 0x100(sp)
|
|
|
0c4d3e |
- fsd fa2, 0x108(sp)
|
|
|
0c4d3e |
- fsd fa3, 0x110(sp)
|
|
|
0c4d3e |
- fsd fa4, 0x118(sp)
|
|
|
0c4d3e |
- fsd fa5, 0x120(sp)
|
|
|
0c4d3e |
- fsd fa6, 0x128(sp)
|
|
|
0c4d3e |
- fsd fa7, 0x130(sp)
|
|
|
0c4d3e |
- fsd ft8, 0x138(sp)
|
|
|
0c4d3e |
- fsd ft9, 0x140(sp)
|
|
|
0c4d3e |
- fsd ft9, 0x148(sp)
|
|
|
0c4d3e |
- fsd ft10, 0x150(sp)
|
|
|
0c4d3e |
- fsd ft11, 0x158(sp)
|
|
|
0c4d3e |
+ fsd ft0, 0xb8(sp)
|
|
|
0c4d3e |
+ fsd ft1, 0xc0(sp)
|
|
|
0c4d3e |
+ fsd ft2, 0xc8(sp)
|
|
|
0c4d3e |
+ fsd ft3, 0xd0(sp)
|
|
|
0c4d3e |
+ fsd ft4, 0xd8(sp)
|
|
|
0c4d3e |
+ fsd ft5, 0xe0(sp)
|
|
|
0c4d3e |
+ fsd ft6, 0xe8(sp)
|
|
|
0c4d3e |
+ fsd ft7, 0xf0(sp)
|
|
|
0c4d3e |
+ fsd fa0, 0xf8(sp)
|
|
|
0c4d3e |
+ fsd fa1, 0x100(sp)
|
|
|
0c4d3e |
+ fsd fa2, 0x108(sp)
|
|
|
0c4d3e |
+ fsd fa3, 0x110(sp)
|
|
|
0c4d3e |
+ fsd fa4, 0x118(sp)
|
|
|
0c4d3e |
+ fsd fa5, 0x120(sp)
|
|
|
0c4d3e |
+ fsd fa6, 0x128(sp)
|
|
|
0c4d3e |
+ fsd fa7, 0x130(sp)
|
|
|
0c4d3e |
+ fsd ft8, 0x138(sp)
|
|
|
0c4d3e |
+ fsd ft9, 0x140(sp)
|
|
|
0c4d3e |
+ fsd ft9, 0x148(sp)
|
|
|
0c4d3e |
+ fsd ft10, 0x150(sp)
|
|
|
0c4d3e |
+ fsd ft11, 0x158(sp)
|
|
|
0c4d3e |
/* Store pointer to saved integer registers in caml_gc_regs */
|
|
|
0c4d3e |
- addi TMP1, sp, 16
|
|
|
0c4d3e |
- store TMP1, caml_gc_regs, TMP0
|
|
|
0c4d3e |
+ addi TMP1, sp, 16
|
|
|
0c4d3e |
+ store TMP1, caml_gc_regs, TMP0
|
|
|
0c4d3e |
/* Save current allocation pointer for debugging purposes */
|
|
|
0c4d3e |
- store ALLOC_PTR, caml_young_ptr, TMP0
|
|
|
0c4d3e |
+ store ALLOC_PTR, caml_young_ptr, TMP0
|
|
|
0c4d3e |
/* Save trap pointer in case an exception is raised during GC */
|
|
|
0c4d3e |
- store TRAP_PTR, caml_exception_pointer, TMP0
|
|
|
0c4d3e |
+ store TRAP_PTR, caml_exception_pointer, TMP0
|
|
|
0c4d3e |
/* Call the garbage collector */
|
|
|
0c4d3e |
- call caml_garbage_collection
|
|
|
0c4d3e |
+ call caml_garbage_collection
|
|
|
0c4d3e |
/* Restore registers */
|
|
|
0c4d3e |
- load a0, 0x10(sp)
|
|
|
0c4d3e |
- load a1, 0x18(sp)
|
|
|
0c4d3e |
- load a2, 0x20(sp)
|
|
|
0c4d3e |
- load a3, 0x28(sp)
|
|
|
0c4d3e |
- load a4, 0x30(sp)
|
|
|
0c4d3e |
- load a5, 0x38(sp)
|
|
|
0c4d3e |
- load a6, 0x40(sp)
|
|
|
0c4d3e |
- load a7, 0x48(sp)
|
|
|
0c4d3e |
- load s2, 0x50(sp)
|
|
|
0c4d3e |
- load s3, 0x58(sp)
|
|
|
0c4d3e |
- load s4, 0x60(sp)
|
|
|
0c4d3e |
- load s5, 0x68(sp)
|
|
|
0c4d3e |
- load s6, 0x70(sp)
|
|
|
0c4d3e |
- load s7, 0x78(sp)
|
|
|
0c4d3e |
- load s8, 0x80(sp)
|
|
|
0c4d3e |
- load s9, 0x88(sp)
|
|
|
0c4d3e |
- load t2, 0x90(sp)
|
|
|
0c4d3e |
- load t3, 0x98(sp)
|
|
|
0c4d3e |
- load t4, 0xa0(sp)
|
|
|
0c4d3e |
- load t5, 0xa8(sp)
|
|
|
0c4d3e |
- load t6, 0xb0(sp)
|
|
|
0c4d3e |
- fld ft0, 0xb8(sp)
|
|
|
0c4d3e |
- fld ft1, 0xc0(sp)
|
|
|
0c4d3e |
- fld ft2, 0xc8(sp)
|
|
|
0c4d3e |
- fld ft3, 0xd0(sp)
|
|
|
0c4d3e |
- fld ft4, 0xd8(sp)
|
|
|
0c4d3e |
- fld ft5, 0xe0(sp)
|
|
|
0c4d3e |
- fld ft6, 0xe8(sp)
|
|
|
0c4d3e |
- fld ft7, 0xf0(sp)
|
|
|
0c4d3e |
- fld fa0, 0xf8(sp)
|
|
|
0c4d3e |
- fld fa1, 0x100(sp)
|
|
|
0c4d3e |
- fld fa2, 0x108(sp)
|
|
|
0c4d3e |
- fld fa3, 0x110(sp)
|
|
|
0c4d3e |
- fld fa4, 0x118(sp)
|
|
|
0c4d3e |
- fld fa5, 0x120(sp)
|
|
|
0c4d3e |
- fld fa6, 0x128(sp)
|
|
|
0c4d3e |
- fld fa7, 0x130(sp)
|
|
|
0c4d3e |
- fld ft8, 0x138(sp)
|
|
|
0c4d3e |
- fld ft9, 0x140(sp)
|
|
|
0c4d3e |
- fld ft9, 0x148(sp)
|
|
|
0c4d3e |
- fld ft10, 0x150(sp)
|
|
|
0c4d3e |
- fld ft11, 0x158(sp)
|
|
|
0c4d3e |
+ load a0, 0x10(sp)
|
|
|
0c4d3e |
+ load a1, 0x18(sp)
|
|
|
0c4d3e |
+ load a2, 0x20(sp)
|
|
|
0c4d3e |
+ load a3, 0x28(sp)
|
|
|
0c4d3e |
+ load a4, 0x30(sp)
|
|
|
0c4d3e |
+ load a5, 0x38(sp)
|
|
|
0c4d3e |
+ load a6, 0x40(sp)
|
|
|
0c4d3e |
+ load a7, 0x48(sp)
|
|
|
0c4d3e |
+ load s2, 0x50(sp)
|
|
|
0c4d3e |
+ load s3, 0x58(sp)
|
|
|
0c4d3e |
+ load s4, 0x60(sp)
|
|
|
0c4d3e |
+ load s5, 0x68(sp)
|
|
|
0c4d3e |
+ load s6, 0x70(sp)
|
|
|
0c4d3e |
+ load s7, 0x78(sp)
|
|
|
0c4d3e |
+ load s8, 0x80(sp)
|
|
|
0c4d3e |
+ load s9, 0x88(sp)
|
|
|
0c4d3e |
+ load t2, 0x90(sp)
|
|
|
0c4d3e |
+ load t3, 0x98(sp)
|
|
|
0c4d3e |
+ load t4, 0xa0(sp)
|
|
|
0c4d3e |
+ load t5, 0xa8(sp)
|
|
|
0c4d3e |
+ load t6, 0xb0(sp)
|
|
|
0c4d3e |
+ fld ft0, 0xb8(sp)
|
|
|
0c4d3e |
+ fld ft1, 0xc0(sp)
|
|
|
0c4d3e |
+ fld ft2, 0xc8(sp)
|
|
|
0c4d3e |
+ fld ft3, 0xd0(sp)
|
|
|
0c4d3e |
+ fld ft4, 0xd8(sp)
|
|
|
0c4d3e |
+ fld ft5, 0xe0(sp)
|
|
|
0c4d3e |
+ fld ft6, 0xe8(sp)
|
|
|
0c4d3e |
+ fld ft7, 0xf0(sp)
|
|
|
0c4d3e |
+ fld fa0, 0xf8(sp)
|
|
|
0c4d3e |
+ fld fa1, 0x100(sp)
|
|
|
0c4d3e |
+ fld fa2, 0x108(sp)
|
|
|
0c4d3e |
+ fld fa3, 0x110(sp)
|
|
|
0c4d3e |
+ fld fa4, 0x118(sp)
|
|
|
0c4d3e |
+ fld fa5, 0x120(sp)
|
|
|
0c4d3e |
+ fld fa6, 0x128(sp)
|
|
|
0c4d3e |
+ fld fa7, 0x130(sp)
|
|
|
0c4d3e |
+ fld ft8, 0x138(sp)
|
|
|
0c4d3e |
+ fld ft9, 0x140(sp)
|
|
|
0c4d3e |
+ fld ft9, 0x148(sp)
|
|
|
0c4d3e |
+ fld ft10, 0x150(sp)
|
|
|
0c4d3e |
+ fld ft11, 0x158(sp)
|
|
|
0c4d3e |
/* Reload new allocation pointer and allocation limit */
|
|
|
0c4d3e |
- load ALLOC_PTR, caml_young_ptr
|
|
|
0c4d3e |
- load ALLOC_LIMIT, caml_young_limit
|
|
|
0c4d3e |
+ load ALLOC_PTR, caml_young_ptr
|
|
|
0c4d3e |
+ load ALLOC_LIMIT, caml_young_limit
|
|
|
0c4d3e |
/* Free stack space and return to caller */
|
|
|
0c4d3e |
- load ra, 0x8(sp)
|
|
|
0c4d3e |
- load s0, 0x0(sp)
|
|
|
0c4d3e |
- addi sp, sp, 0x160
|
|
|
0c4d3e |
+ load ra, 0x8(sp)
|
|
|
0c4d3e |
+ load s0, 0x0(sp)
|
|
|
0c4d3e |
+ addi sp, sp, 0x160
|
|
|
0c4d3e |
ret
|
|
|
0c4d3e |
- .size caml_call_gc, .-caml_call_gc
|
|
|
0c4d3e |
+ .size caml_call_gc, .-caml_call_gc
|
|
|
0c4d3e |
|
|
|
0c4d3e |
/* Call a C function from OCaml */
|
|
|
0c4d3e |
/* Function to call is in ARG */
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .align 2
|
|
|
0c4d3e |
- .globl caml_c_call
|
|
|
0c4d3e |
- .type caml_c_call, @function
|
|
|
0c4d3e |
+ .align 2
|
|
|
0c4d3e |
+ .globl caml_c_call
|
|
|
0c4d3e |
+ .type caml_c_call, @function
|
|
|
0c4d3e |
caml_c_call:
|
|
|
0c4d3e |
/* Preserve return address in callee-save register s2 */
|
|
|
0c4d3e |
- mv s2, ra
|
|
|
0c4d3e |
+ mv s2, ra
|
|
|
0c4d3e |
/* Record lowest stack address and return address */
|
|
|
0c4d3e |
- store ra, caml_last_return_address, TMP0
|
|
|
0c4d3e |
- store sp, caml_bottom_of_stack, TMP0
|
|
|
0c4d3e |
+ store ra, caml_last_return_address, TMP0
|
|
|
0c4d3e |
+ store sp, caml_bottom_of_stack, TMP0
|
|
|
0c4d3e |
/* Make the exception handler alloc ptr available to the C code */
|
|
|
0c4d3e |
- store ALLOC_PTR, caml_young_ptr, TMP0
|
|
|
0c4d3e |
- store TRAP_PTR, caml_exception_pointer, TMP0
|
|
|
0c4d3e |
+ store ALLOC_PTR, caml_young_ptr, TMP0
|
|
|
0c4d3e |
+ store TRAP_PTR, caml_exception_pointer, TMP0
|
|
|
0c4d3e |
/* Call the function */
|
|
|
0c4d3e |
- jalr ARG
|
|
|
0c4d3e |
+ jalr ARG
|
|
|
0c4d3e |
/* Reload alloc ptr and alloc limit */
|
|
|
0c4d3e |
- load ALLOC_PTR, caml_young_ptr
|
|
|
0c4d3e |
- load TRAP_PTR, caml_exception_pointer
|
|
|
0c4d3e |
+ load ALLOC_PTR, caml_young_ptr
|
|
|
0c4d3e |
+ load TRAP_PTR, caml_exception_pointer
|
|
|
0c4d3e |
/* Return */
|
|
|
0c4d3e |
- jr s2
|
|
|
0c4d3e |
- .size caml_c_call, .-caml_c_call
|
|
|
0c4d3e |
+ jr s2
|
|
|
0c4d3e |
+ .size caml_c_call, .-caml_c_call
|
|
|
0c4d3e |
|
|
|
0c4d3e |
/* Raise an exception from OCaml */
|
|
|
0c4d3e |
- .align 2
|
|
|
0c4d3e |
- .globl caml_raise_exn
|
|
|
0c4d3e |
- .type caml_raise_exn, @function
|
|
|
0c4d3e |
+ .align 2
|
|
|
0c4d3e |
+ .globl caml_raise_exn
|
|
|
0c4d3e |
+ .type caml_raise_exn, @function
|
|
|
0c4d3e |
caml_raise_exn:
|
|
|
0c4d3e |
/* Test if backtrace is active */
|
|
|
0c4d3e |
- load TMP1, caml_backtrace_active
|
|
|
0c4d3e |
- bnez TMP1, 2f
|
|
|
0c4d3e |
+ load TMP1, caml_backtrace_active
|
|
|
0c4d3e |
+ bnez TMP1, 2f
|
|
|
0c4d3e |
1: /* Cut stack at current trap handler */
|
|
|
0c4d3e |
- mv sp, TRAP_PTR
|
|
|
0c4d3e |
+ mv sp, TRAP_PTR
|
|
|
0c4d3e |
/* Pop previous handler and jump to it */
|
|
|
0c4d3e |
- load TMP1, 8(sp)
|
|
|
0c4d3e |
- load TRAP_PTR, 0(sp)
|
|
|
0c4d3e |
- addi sp, sp, 16
|
|
|
0c4d3e |
- jr TMP1
|
|
|
0c4d3e |
+ load TMP1, 8(sp)
|
|
|
0c4d3e |
+ load TRAP_PTR, 0(sp)
|
|
|
0c4d3e |
+ addi sp, sp, 16
|
|
|
0c4d3e |
+ jr TMP1
|
|
|
0c4d3e |
2: /* Preserve exception bucket in callee-save register s2 */
|
|
|
0c4d3e |
- mv s2, a0
|
|
|
0c4d3e |
+ mv s2, a0
|
|
|
0c4d3e |
/* Stash the backtrace */
|
|
|
0c4d3e |
- mv a1, ra
|
|
|
0c4d3e |
- mv a2, sp
|
|
|
0c4d3e |
- mv a3, TRAP_PTR
|
|
|
0c4d3e |
- call caml_stash_backtrace
|
|
|
0c4d3e |
+ mv a1, ra
|
|
|
0c4d3e |
+ mv a2, sp
|
|
|
0c4d3e |
+ mv a3, TRAP_PTR
|
|
|
0c4d3e |
+ call caml_stash_backtrace
|
|
|
0c4d3e |
/* Restore exception bucket and raise */
|
|
|
0c4d3e |
- mv a0, s2
|
|
|
0c4d3e |
- j 1b
|
|
|
0c4d3e |
- .size caml_raise_exn, .-caml_raise_exn
|
|
|
0c4d3e |
+ mv a0, s2
|
|
|
0c4d3e |
+ j 1b
|
|
|
0c4d3e |
+ .size caml_raise_exn, .-caml_raise_exn
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .globl caml_reraise_exn
|
|
|
0c4d3e |
- .type caml_reraise_exn, @function
|
|
|
0c4d3e |
+ .globl caml_reraise_exn
|
|
|
0c4d3e |
+ .type caml_reraise_exn, @function
|
|
|
0c4d3e |
|
|
|
0c4d3e |
/* Raise an exception from C */
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .align 2
|
|
|
0c4d3e |
- .globl caml_raise_exception
|
|
|
0c4d3e |
- .type caml_raise_exception, @function
|
|
|
0c4d3e |
+ .align 2
|
|
|
0c4d3e |
+ .globl caml_raise_exception
|
|
|
0c4d3e |
+ .type caml_raise_exception, @function
|
|
|
0c4d3e |
caml_raise_exception:
|
|
|
0c4d3e |
- load TRAP_PTR, caml_exception_pointer
|
|
|
0c4d3e |
- load ALLOC_PTR, caml_young_ptr
|
|
|
0c4d3e |
- load ALLOC_LIMIT, caml_young_limit
|
|
|
0c4d3e |
- load TMP1, caml_backtrace_active
|
|
|
0c4d3e |
- bnez TMP1, 2f
|
|
|
0c4d3e |
+ load TRAP_PTR, caml_exception_pointer
|
|
|
0c4d3e |
+ load ALLOC_PTR, caml_young_ptr
|
|
|
0c4d3e |
+ load ALLOC_LIMIT, caml_young_limit
|
|
|
0c4d3e |
+ load TMP1, caml_backtrace_active
|
|
|
0c4d3e |
+ bnez TMP1, 2f
|
|
|
0c4d3e |
1: /* Cut stack at current trap handler */
|
|
|
0c4d3e |
- mv sp, TRAP_PTR
|
|
|
0c4d3e |
- load TMP1, 8(sp)
|
|
|
0c4d3e |
- load TRAP_PTR, 0(sp)
|
|
|
0c4d3e |
- addi sp, sp, 16
|
|
|
0c4d3e |
- jr TMP1
|
|
|
0c4d3e |
+ mv sp, TRAP_PTR
|
|
|
0c4d3e |
+ load TMP1, 8(sp)
|
|
|
0c4d3e |
+ load TRAP_PTR, 0(sp)
|
|
|
0c4d3e |
+ addi sp, sp, 16
|
|
|
0c4d3e |
+ jr TMP1
|
|
|
0c4d3e |
2: /* Preserve exception bucket in callee-save register s2 */
|
|
|
0c4d3e |
- mv s2, a0
|
|
|
0c4d3e |
- load a1, caml_last_return_address
|
|
|
0c4d3e |
- load a2, caml_bottom_of_stack
|
|
|
0c4d3e |
- mv a3, TRAP_PTR
|
|
|
0c4d3e |
- call caml_stash_backtrace
|
|
|
0c4d3e |
- mv a0, s2
|
|
|
0c4d3e |
- j 1b
|
|
|
0c4d3e |
- .size caml_raise_exception, .-caml_raise_exception
|
|
|
0c4d3e |
+ mv s2, a0
|
|
|
0c4d3e |
+ load a1, caml_last_return_address
|
|
|
0c4d3e |
+ load a2, caml_bottom_of_stack
|
|
|
0c4d3e |
+ mv a3, TRAP_PTR
|
|
|
0c4d3e |
+ call caml_stash_backtrace
|
|
|
0c4d3e |
+ mv a0, s2
|
|
|
0c4d3e |
+ j 1b
|
|
|
0c4d3e |
+ .size caml_raise_exception, .-caml_raise_exception
|
|
|
0c4d3e |
|
|
|
0c4d3e |
/* Start the OCaml program */
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .align 2
|
|
|
0c4d3e |
- .globl caml_start_program
|
|
|
0c4d3e |
- .type caml_start_program, @function
|
|
|
0c4d3e |
+ .align 2
|
|
|
0c4d3e |
+ .globl caml_start_program
|
|
|
0c4d3e |
+ .type caml_start_program, @function
|
|
|
0c4d3e |
caml_start_program:
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- la ARG, caml_program
|
|
|
0c4d3e |
+ la ARG, caml_program
|
|
|
0c4d3e |
/* Code shared with caml_callback* */
|
|
|
0c4d3e |
/* Address of OCaml code to call is in ARG */
|
|
|
0c4d3e |
/* Arguments to the OCaml code are in a0 ... a7 */
|
|
|
0c4d3e |
.Ljump_to_caml:
|
|
|
0c4d3e |
- /* Set up stack frame and save callee-save registers */
|
|
|
0c4d3e |
- addi sp, sp, -0xd0
|
|
|
0c4d3e |
- store ra, 0xc0(sp)
|
|
|
0c4d3e |
- store s0, 0x0(sp)
|
|
|
0c4d3e |
- store s1, 0x8(sp)
|
|
|
0c4d3e |
- store s2, 0x10(sp)
|
|
|
0c4d3e |
- store s3, 0x18(sp)
|
|
|
0c4d3e |
- store s4, 0x20(sp)
|
|
|
0c4d3e |
- store s5, 0x28(sp)
|
|
|
0c4d3e |
- store s6, 0x30(sp)
|
|
|
0c4d3e |
- store s7, 0x38(sp)
|
|
|
0c4d3e |
- store s8, 0x40(sp)
|
|
|
0c4d3e |
- store s9, 0x48(sp)
|
|
|
0c4d3e |
- store s10, 0x50(sp)
|
|
|
0c4d3e |
- store s11, 0x58(sp)
|
|
|
0c4d3e |
- fsd fs0, 0x60(sp)
|
|
|
0c4d3e |
- fsd fs1, 0x68(sp)
|
|
|
0c4d3e |
- fsd fs2, 0x70(sp)
|
|
|
0c4d3e |
- fsd fs3, 0x78(sp)
|
|
|
0c4d3e |
- fsd fs4, 0x80(sp)
|
|
|
0c4d3e |
- fsd fs5, 0x88(sp)
|
|
|
0c4d3e |
- fsd fs6, 0x90(sp)
|
|
|
0c4d3e |
- fsd fs7, 0x98(sp)
|
|
|
0c4d3e |
- fsd fs8, 0xa0(sp)
|
|
|
0c4d3e |
- fsd fs9, 0xa8(sp)
|
|
|
0c4d3e |
- fsd fs10, 0xb0(sp)
|
|
|
0c4d3e |
- fsd fs11, 0xb8(sp)
|
|
|
0c4d3e |
- addi sp, sp, -32
|
|
|
0c4d3e |
+ /* Set up stack frame and save callee-save registers */
|
|
|
0c4d3e |
+ addi sp, sp, -0xd0
|
|
|
0c4d3e |
+ store ra, 0xc0(sp)
|
|
|
0c4d3e |
+ store s0, 0x0(sp)
|
|
|
0c4d3e |
+ store s1, 0x8(sp)
|
|
|
0c4d3e |
+ store s2, 0x10(sp)
|
|
|
0c4d3e |
+ store s3, 0x18(sp)
|
|
|
0c4d3e |
+ store s4, 0x20(sp)
|
|
|
0c4d3e |
+ store s5, 0x28(sp)
|
|
|
0c4d3e |
+ store s6, 0x30(sp)
|
|
|
0c4d3e |
+ store s7, 0x38(sp)
|
|
|
0c4d3e |
+ store s8, 0x40(sp)
|
|
|
0c4d3e |
+ store s9, 0x48(sp)
|
|
|
0c4d3e |
+ store s10, 0x50(sp)
|
|
|
0c4d3e |
+ store s11, 0x58(sp)
|
|
|
0c4d3e |
+ fsd fs0, 0x60(sp)
|
|
|
0c4d3e |
+ fsd fs1, 0x68(sp)
|
|
|
0c4d3e |
+ fsd fs2, 0x70(sp)
|
|
|
0c4d3e |
+ fsd fs3, 0x78(sp)
|
|
|
0c4d3e |
+ fsd fs4, 0x80(sp)
|
|
|
0c4d3e |
+ fsd fs5, 0x88(sp)
|
|
|
0c4d3e |
+ fsd fs6, 0x90(sp)
|
|
|
0c4d3e |
+ fsd fs7, 0x98(sp)
|
|
|
0c4d3e |
+ fsd fs8, 0xa0(sp)
|
|
|
0c4d3e |
+ fsd fs9, 0xa8(sp)
|
|
|
0c4d3e |
+ fsd fs10, 0xb0(sp)
|
|
|
0c4d3e |
+ fsd fs11, 0xb8(sp)
|
|
|
0c4d3e |
+ addi sp, sp, -32
|
|
|
0c4d3e |
/* Setup a callback link on the stack */
|
|
|
0c4d3e |
- load TMP1, caml_bottom_of_stack
|
|
|
0c4d3e |
- store TMP1, 0(sp)
|
|
|
0c4d3e |
- load TMP1, caml_last_return_address
|
|
|
0c4d3e |
- store TMP1, 8(sp)
|
|
|
0c4d3e |
- load TMP1, caml_gc_regs
|
|
|
0c4d3e |
- store TMP1, 16(sp)
|
|
|
0c4d3e |
- /* set up a trap frame */
|
|
|
0c4d3e |
- addi sp, sp, -16
|
|
|
0c4d3e |
- load TMP1, caml_exception_pointer
|
|
|
0c4d3e |
- store TMP1, 0(sp)
|
|
|
0c4d3e |
- lla TMP0, .Ltrap_handler
|
|
|
0c4d3e |
- store TMP0, 8(sp)
|
|
|
0c4d3e |
- mv TRAP_PTR, sp
|
|
|
0c4d3e |
- load ALLOC_PTR, caml_young_ptr
|
|
|
0c4d3e |
- load ALLOC_LIMIT, caml_young_limit
|
|
|
0c4d3e |
- store x0, caml_last_return_address, TMP0
|
|
|
0c4d3e |
- jalr ARG
|
|
|
0c4d3e |
-.Lcaml_retaddr: /* pop trap frame, restoring caml_exception_pointer */
|
|
|
0c4d3e |
- load TMP1, 0(sp)
|
|
|
0c4d3e |
- store TMP1, caml_exception_pointer, TMP0
|
|
|
0c4d3e |
- addi sp, sp, 16
|
|
|
0c4d3e |
-.Lreturn_result: /* pop callback link, restoring global variables */
|
|
|
0c4d3e |
- load TMP1, 0(sp)
|
|
|
0c4d3e |
- store TMP1, caml_bottom_of_stack, TMP0
|
|
|
0c4d3e |
- load TMP1, 8(sp)
|
|
|
0c4d3e |
- store TMP1, caml_last_return_address, TMP0
|
|
|
0c4d3e |
- load TMP1, 16(sp)
|
|
|
0c4d3e |
- store TMP1, caml_gc_regs, TMP0
|
|
|
0c4d3e |
- addi sp, sp, 32
|
|
|
0c4d3e |
- /* Update allocation pointer */
|
|
|
0c4d3e |
- store ALLOC_PTR, caml_young_ptr, TMP0
|
|
|
0c4d3e |
- /* reload callee-save registers and return */
|
|
|
0c4d3e |
- load ra, 0xc0(sp)
|
|
|
0c4d3e |
- load s0, 0x0(sp)
|
|
|
0c4d3e |
- load s1, 0x8(sp)
|
|
|
0c4d3e |
- load s2, 0x10(sp)
|
|
|
0c4d3e |
- load s3, 0x18(sp)
|
|
|
0c4d3e |
- load s4, 0x20(sp)
|
|
|
0c4d3e |
- load s5, 0x28(sp)
|
|
|
0c4d3e |
- load s6, 0x30(sp)
|
|
|
0c4d3e |
- load s7, 0x38(sp)
|
|
|
0c4d3e |
- load s8, 0x40(sp)
|
|
|
0c4d3e |
- load s9, 0x48(sp)
|
|
|
0c4d3e |
- load s10, 0x50(sp)
|
|
|
0c4d3e |
- load s11, 0x58(sp)
|
|
|
0c4d3e |
- fld fs0, 0x60(sp)
|
|
|
0c4d3e |
- fld fs1, 0x68(sp)
|
|
|
0c4d3e |
- fld fs2, 0x70(sp)
|
|
|
0c4d3e |
- fld fs3, 0x78(sp)
|
|
|
0c4d3e |
- fld fs4, 0x80(sp)
|
|
|
0c4d3e |
- fld fs5, 0x88(sp)
|
|
|
0c4d3e |
- fld fs6, 0x90(sp)
|
|
|
0c4d3e |
- fld fs7, 0x98(sp)
|
|
|
0c4d3e |
- fld fs8, 0xa0(sp)
|
|
|
0c4d3e |
- fld fs9, 0xa8(sp)
|
|
|
0c4d3e |
- fld fs10, 0xb0(sp)
|
|
|
0c4d3e |
- fld fs11, 0xb8(sp)
|
|
|
0c4d3e |
- addi sp, sp, 0xd0
|
|
|
0c4d3e |
- ret
|
|
|
0c4d3e |
+ load TMP1, caml_bottom_of_stack
|
|
|
0c4d3e |
+ store TMP1, 0(sp)
|
|
|
0c4d3e |
+ load TMP1, caml_last_return_address
|
|
|
0c4d3e |
+ store TMP1, 8(sp)
|
|
|
0c4d3e |
+ load TMP1, caml_gc_regs
|
|
|
0c4d3e |
+ store TMP1, 16(sp)
|
|
|
0c4d3e |
+ /* set up a trap frame */
|
|
|
0c4d3e |
+ addi sp, sp, -16
|
|
|
0c4d3e |
+ load TMP1, caml_exception_pointer
|
|
|
0c4d3e |
+ store TMP1, 0(sp)
|
|
|
0c4d3e |
+ lla TMP0, .Ltrap_handler
|
|
|
0c4d3e |
+ store TMP0, 8(sp)
|
|
|
0c4d3e |
+ mv TRAP_PTR, sp
|
|
|
0c4d3e |
+ load ALLOC_PTR, caml_young_ptr
|
|
|
0c4d3e |
+ load ALLOC_LIMIT, caml_young_limit
|
|
|
0c4d3e |
+ store x0, caml_last_return_address, TMP0
|
|
|
0c4d3e |
+ jalr ARG
|
|
|
0c4d3e |
+.Lcaml_retaddr: /* pop trap frame, restoring caml_exception_pointer */
|
|
|
0c4d3e |
+ load TMP1, 0(sp)
|
|
|
0c4d3e |
+ store TMP1, caml_exception_pointer, TMP0
|
|
|
0c4d3e |
+ addi sp, sp, 16
|
|
|
0c4d3e |
+.Lreturn_result: /* pop callback link, restoring global variables */
|
|
|
0c4d3e |
+ load TMP1, 0(sp)
|
|
|
0c4d3e |
+ store TMP1, caml_bottom_of_stack, TMP0
|
|
|
0c4d3e |
+ load TMP1, 8(sp)
|
|
|
0c4d3e |
+ store TMP1, caml_last_return_address, TMP0
|
|
|
0c4d3e |
+ load TMP1, 16(sp)
|
|
|
0c4d3e |
+ store TMP1, caml_gc_regs, TMP0
|
|
|
0c4d3e |
+ addi sp, sp, 32
|
|
|
0c4d3e |
+ /* Update allocation pointer */
|
|
|
0c4d3e |
+ store ALLOC_PTR, caml_young_ptr, TMP0
|
|
|
0c4d3e |
+ /* reload callee-save registers and return */
|
|
|
0c4d3e |
+ load ra, 0xc0(sp)
|
|
|
0c4d3e |
+ load s0, 0x0(sp)
|
|
|
0c4d3e |
+ load s1, 0x8(sp)
|
|
|
0c4d3e |
+ load s2, 0x10(sp)
|
|
|
0c4d3e |
+ load s3, 0x18(sp)
|
|
|
0c4d3e |
+ load s4, 0x20(sp)
|
|
|
0c4d3e |
+ load s5, 0x28(sp)
|
|
|
0c4d3e |
+ load s6, 0x30(sp)
|
|
|
0c4d3e |
+ load s7, 0x38(sp)
|
|
|
0c4d3e |
+ load s8, 0x40(sp)
|
|
|
0c4d3e |
+ load s9, 0x48(sp)
|
|
|
0c4d3e |
+ load s10, 0x50(sp)
|
|
|
0c4d3e |
+ load s11, 0x58(sp)
|
|
|
0c4d3e |
+ fld fs0, 0x60(sp)
|
|
|
0c4d3e |
+ fld fs1, 0x68(sp)
|
|
|
0c4d3e |
+ fld fs2, 0x70(sp)
|
|
|
0c4d3e |
+ fld fs3, 0x78(sp)
|
|
|
0c4d3e |
+ fld fs4, 0x80(sp)
|
|
|
0c4d3e |
+ fld fs5, 0x88(sp)
|
|
|
0c4d3e |
+ fld fs6, 0x90(sp)
|
|
|
0c4d3e |
+ fld fs7, 0x98(sp)
|
|
|
0c4d3e |
+ fld fs8, 0xa0(sp)
|
|
|
0c4d3e |
+ fld fs9, 0xa8(sp)
|
|
|
0c4d3e |
+ fld fs10, 0xb0(sp)
|
|
|
0c4d3e |
+ fld fs11, 0xb8(sp)
|
|
|
0c4d3e |
+ addi sp, sp, 0xd0
|
|
|
0c4d3e |
+ ret
|
|
|
0c4d3e |
.Ltrap_handler:
|
|
|
0c4d3e |
- store TRAP_PTR, caml_exception_pointer, TMP0
|
|
|
0c4d3e |
- ori a0, a0, 2
|
|
|
0c4d3e |
- j .Lreturn_result
|
|
|
0c4d3e |
- .size caml_start_program, .-caml_start_program
|
|
|
0c4d3e |
+ store TRAP_PTR, caml_exception_pointer, TMP0
|
|
|
0c4d3e |
+ ori a0, a0, 2
|
|
|
0c4d3e |
+ j .Lreturn_result
|
|
|
0c4d3e |
+ .size caml_start_program, .-caml_start_program
|
|
|
0c4d3e |
|
|
|
0c4d3e |
/* Callback from C to OCaml */
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .align 2
|
|
|
0c4d3e |
- .globl caml_callback_exn
|
|
|
0c4d3e |
- .type caml_callback_exn, @function
|
|
|
0c4d3e |
+ .align 2
|
|
|
0c4d3e |
+ .globl caml_callback_exn
|
|
|
0c4d3e |
+ .type caml_callback_exn, @function
|
|
|
0c4d3e |
caml_callback_exn:
|
|
|
0c4d3e |
/* Initial shuffling of arguments (a0 = closure, a1 = first arg) */
|
|
|
0c4d3e |
- mv TMP1, a0
|
|
|
0c4d3e |
- mv a0, a1 /* a0 = first arg */
|
|
|
0c4d3e |
- mv a1, TMP1 /* a1 = closure environment */
|
|
|
0c4d3e |
- load ARG, 0(TMP1) /* code pointer */
|
|
|
0c4d3e |
- j .Ljump_to_caml
|
|
|
0c4d3e |
- .size caml_callback_exn, .-caml_callback_exn
|
|
|
0c4d3e |
+ mv TMP1, a0
|
|
|
0c4d3e |
+ mv a0, a1 /* a0 = first arg */
|
|
|
0c4d3e |
+ mv a1, TMP1 /* a1 = closure environment */
|
|
|
0c4d3e |
+ load ARG, 0(TMP1) /* code pointer */
|
|
|
0c4d3e |
+ j .Ljump_to_caml
|
|
|
0c4d3e |
+ .size caml_callback_exn, .-caml_callback_exn
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .align 2
|
|
|
0c4d3e |
- .globl caml_callback2_exn
|
|
|
0c4d3e |
- .type caml_callback2_exn, @function
|
|
|
0c4d3e |
+ .align 2
|
|
|
0c4d3e |
+ .globl caml_callback2_exn
|
|
|
0c4d3e |
+ .type caml_callback2_exn, @function
|
|
|
0c4d3e |
caml_callback2_exn:
|
|
|
0c4d3e |
/* Initial shuffling of arguments (a0 = closure, a1 = arg1, a2 = arg2) */
|
|
|
0c4d3e |
- mv TMP1, a0
|
|
|
0c4d3e |
- mv a0, a1
|
|
|
0c4d3e |
- mv a1, a2
|
|
|
0c4d3e |
- mv a2, TMP1
|
|
|
0c4d3e |
- la ARG, caml_apply2
|
|
|
0c4d3e |
- j .Ljump_to_caml
|
|
|
0c4d3e |
- .size caml_callback2_exn, .-caml_callback2_exn
|
|
|
0c4d3e |
+ mv TMP1, a0
|
|
|
0c4d3e |
+ mv a0, a1
|
|
|
0c4d3e |
+ mv a1, a2
|
|
|
0c4d3e |
+ mv a2, TMP1
|
|
|
0c4d3e |
+ la ARG, caml_apply2
|
|
|
0c4d3e |
+ j .Ljump_to_caml
|
|
|
0c4d3e |
+ .size caml_callback2_exn, .-caml_callback2_exn
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .align 2
|
|
|
0c4d3e |
- .globl caml_callback3_exn
|
|
|
0c4d3e |
- .type caml_callback3_exn, @function
|
|
|
0c4d3e |
+ .align 2
|
|
|
0c4d3e |
+ .globl caml_callback3_exn
|
|
|
0c4d3e |
+ .type caml_callback3_exn, @function
|
|
|
0c4d3e |
caml_callback3_exn:
|
|
|
0c4d3e |
/* Initial shuffling of argumnets */
|
|
|
0c4d3e |
/* (a0 = closure, a1 = arg1, a2 = arg2, a3 = arg3) */
|
|
|
0c4d3e |
- mv TMP1, a0
|
|
|
0c4d3e |
- mv a0, a1
|
|
|
0c4d3e |
- mv a1, a2
|
|
|
0c4d3e |
- mv a2, a3
|
|
|
0c4d3e |
- mv a3, TMP1
|
|
|
0c4d3e |
- la ARG, caml_apply3
|
|
|
0c4d3e |
- j .Ljump_to_caml
|
|
|
0c4d3e |
- .size caml_callback3_exn, .-caml_callback3_exn
|
|
|
0c4d3e |
+ mv TMP1, a0
|
|
|
0c4d3e |
+ mv a0, a1
|
|
|
0c4d3e |
+ mv a1, a2
|
|
|
0c4d3e |
+ mv a2, a3
|
|
|
0c4d3e |
+ mv a3, TMP1
|
|
|
0c4d3e |
+ la ARG, caml_apply3
|
|
|
0c4d3e |
+ j .Ljump_to_caml
|
|
|
0c4d3e |
+ .size caml_callback3_exn, .-caml_callback3_exn
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .align 2
|
|
|
0c4d3e |
- .globl caml_ml_array_bound_error
|
|
|
0c4d3e |
- .type caml_ml_array_bound_error, @function
|
|
|
0c4d3e |
+ .align 2
|
|
|
0c4d3e |
+ .globl caml_ml_array_bound_error
|
|
|
0c4d3e |
+ .type caml_ml_array_bound_error, @function
|
|
|
0c4d3e |
caml_ml_array_bound_error:
|
|
|
0c4d3e |
/* Load address of [caml_array_bound_error] in ARG */
|
|
|
0c4d3e |
- la ARG, caml_array_bound_error
|
|
|
0c4d3e |
+ la ARG, caml_array_bound_error
|
|
|
0c4d3e |
/* Call that function */
|
|
|
0c4d3e |
- j caml_c_call
|
|
|
0c4d3e |
+ j caml_c_call
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .globl caml_system__code_end
|
|
|
0c4d3e |
+ .globl caml_system__code_end
|
|
|
0c4d3e |
caml_system__code_end:
|
|
|
0c4d3e |
|
|
|
0c4d3e |
/* GC roots for callback */
|
|
|
0c4d3e |
|
|
|
0c4d3e |
- .section .data
|
|
|
0c4d3e |
- .align 3
|
|
|
0c4d3e |
- .globl caml_system__frametable
|
|
|
0c4d3e |
- .type caml_system__frametable, @object
|
|
|
0c4d3e |
+ .section .data
|
|
|
0c4d3e |
+ .align 3
|
|
|
0c4d3e |
+ .globl caml_system__frametable
|
|
|
0c4d3e |
+ .type caml_system__frametable, @object
|
|
|
0c4d3e |
caml_system__frametable:
|
|
|
0c4d3e |
- .quad 1 /* one descriptor */
|
|
|
0c4d3e |
- .quad .Lcaml_retaddr /* return address into callback */
|
|
|
0c4d3e |
- .short -1 /* negative frame size => use callback link */
|
|
|
0c4d3e |
- .short 0 /* no roots */
|
|
|
0c4d3e |
- .align 3
|
|
|
0c4d3e |
- .size caml_system__frametable, .-caml_system__frametable
|
|
|
0c4d3e |
+ .quad 1 /* one descriptor */
|
|
|
0c4d3e |
+ .quad .Lcaml_retaddr /* return address into callback */
|
|
|
0c4d3e |
+ .short -1 /* negative frame size => use callback link */
|
|
|
0c4d3e |
+ .short 0 /* no roots */
|
|
|
0c4d3e |
+ .align 3
|
|
|
0c4d3e |
+ .size caml_system__frametable, .-caml_system__frametable
|
|
|
0c4d3e |
--
|
|
|
0c4d3e |
2.17.1
|
|
|
0c4d3e |
|