Enabled setjmp()/longjmp() support in the kernel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20499 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -71,6 +71,7 @@ KernelLd kernel_$(TARGET_ARCH) :
|
|||||||
kernel_os_main.o
|
kernel_os_main.o
|
||||||
kernel_os_arch_$(TARGET_ARCH).o
|
kernel_os_arch_$(TARGET_ARCH).o
|
||||||
kernel_posix.o
|
kernel_posix.o
|
||||||
|
kernel_posix_arch_$(TARGET_ARCH).o
|
||||||
|
|
||||||
$(HAIKU_STATIC_LIBSUPC++)
|
$(HAIKU_STATIC_LIBSUPC++)
|
||||||
|
|
||||||
|
|||||||
@@ -118,3 +118,14 @@ KernelMergeObject kernel_os_arch_$(TARGET_ARCH).o :
|
|||||||
|
|
||||||
: $(TARGET_KERNEL_PIC_CCFLAGS)
|
: $(TARGET_KERNEL_PIC_CCFLAGS)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
SEARCH_SOURCE += [ FDirName $(posixSources) arch $(TARGET_ARCH) ] ;
|
||||||
|
|
||||||
|
KernelMergeObject kernel_posix_arch_$(TARGET_ARCH).o :
|
||||||
|
setjmp.S
|
||||||
|
siglongjmp.S
|
||||||
|
sigsetjmp.S
|
||||||
|
kernel_setjmp_save_sigs.c
|
||||||
|
|
||||||
|
: $(TARGET_KERNEL_PIC_CCFLAGS)
|
||||||
|
;
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
|
** Distributed under the terms of the Haiku License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <setjmp.h>
|
||||||
|
|
||||||
|
|
||||||
|
/** This function is called by sigsetjmp() only */
|
||||||
|
|
||||||
|
int __setjmp_save_sigs(jmp_buf buffer, int saveMask);
|
||||||
|
|
||||||
|
int
|
||||||
|
__setjmp_save_sigs(jmp_buf buffer, int saveMask)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user