libroot/riscv64: Add missing sigjmp's.

Change-Id: Id353f86571ddf5bc106af7c77f0bd3d22b5b7cbd
Reviewed-on: https://review.haiku-os.org/c/1381
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Alexander von Gluck IV
2019-04-05 14:29:23 +00:00
committed by waddlesplash
parent dd0667da66
commit d5ee175d98
4 changed files with 37 additions and 4 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ SEARCH_SOURCE += [ FDirName $(posixSources) string arch generic ] ;
SEARCH_SOURCE += [ FDirName $(posixSources) string arch $(TARGET_ARCH) ] ;
KernelMergeObject kernel_lib_posix_arch_$(TARGET_ARCH).o :
#siglongjmp.S
#sigsetjmp.S
siglongjmp.S
sigsetjmp.S
kernel_longjmp_return.c
kernel_setjmp_save_sigs.c
@@ -12,8 +12,8 @@ for architectureObject in [ MultiArchSubDirSetup riscv64 ] {
MergeObject <$(architecture)>posix_arch_$(TARGET_ARCH).o :
fenv.c
#sigsetjmp.S
#siglongjmp.S
sigsetjmp.S
siglongjmp.S
$(genericSources)
;
@@ -0,0 +1,20 @@
/*
* Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk
* Distributed under the terms of the MIT License.
*/
#include <asm_defs.h>
/* int __siglongjmp(jmp_buf buffer, int value) */
FUNCTION(siglongjmp):
FUNCTION(longjmp):
FUNCTION(_longjmp):
ret
FUNCTION_END(siglongjmp)
FUNCTION_END(longjmp)
FUNCTION_END(_longjmp)
#pragma weak longjmp=siglongjmp
@@ -0,0 +1,13 @@
/* Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk.
* Distributed under the terms of the MIT License.
*/
#include <asm_defs.h>
/* int setjmp(jmp_buf buffer) */
FUNCTION(setjmp):
FUNCTION(_setjmp):
ret
FUNCTION_END(setjmp)