1/* Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk. 2 * Distributed under the terms of the MIT License. 3 */ 4 5 6#include <asm_defs.h> 7 8 9# TODO: FPU? 10 11/* int sigsetjmp(jmp_buf buffer, int saveMask) */ 12FUNCTION(__sigsetjmp): 13FUNCTION(sigsetjmp): 14 sd ra, 0*8(a0) 15 sd s0, 1*8(a0) 16 sd s1, 2*8(a0) 17 sd s2, 3*8(a0) 18 sd s3, 4*8(a0) 19 sd s4, 5*8(a0) 20 sd s5, 6*8(a0) 21 sd s6, 7*8(a0) 22 sd s7, 8*8(a0) 23 sd s8, 9*8(a0) 24 sd s9, 10*8(a0) 25 sd s10, 11*8(a0) 26 sd s11, 12*8(a0) 27 sd sp, 13*8(a0) 28 29 tail __setjmp_save_sigs 30FUNCTION_END(setjmp) 31 32 33/* int setjmp(jmp_buf buffer) */ 34FUNCTION(setjmp): 35FUNCTION(_setjmp): 36 li a1, 0 37 tail sigsetjmp 38FUNCTION_END(setjmp) 39