]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
Enable setjmp and longjmp support
authorCostin Lupu <costin.lupu@cs.pub.ro>
Sun, 10 Mar 2019 14:33:06 +0000 (16:33 +0200)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Mon, 11 Mar 2019 11:35:25 +0000 (12:35 +0100)
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Makefile.uk

index 70d5c85b98cc44484d5736b796155177a4629280..6a918b84c7257666ffb27779caaf549295522b83 100644 (file)
@@ -796,6 +796,13 @@ LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/time/tzset_r.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/time/tzvars.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/time/wcsftime.c
 
+################################################################################
+# Newlib/libc code -- setjmp, longjmp
+################################################################################
+LIBNEWLIBC_SRCS-$(CONFIG_ARCH_X86_64) += $(LIBNEWLIB_LIBC)/machine/x86_64/setjmp.S
+LIBNEWLIBC_SRCS-$(CONFIG_ARCH_ARM_32) += $(LIBNEWLIB_LIBC)/machine/arm/setjmp.S
+LIBNEWLIBC_SRCS-$(CONFIG_ARCH_ARM_64) += $(LIBNEWLIB_LIBC)/machine/aarch64/setjmp.S
+
 ################################################################################
 # Newlib/libm code -- math
 ################################################################################