From 6561433a6680b34c04dd4581e340f96cc7dfb04c Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Fri, 17 Jun 2022 02:40:11 -0700 Subject: xtensa: implement user context manipulation functions Implement getcontext, makecontext, setcontext and swapcontext. Signed-off-by: Max Filippov --- libc/sysdeps/linux/xtensa/Makefile.arch | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libc/sysdeps/linux/xtensa/Makefile.arch') diff --git a/libc/sysdeps/linux/xtensa/Makefile.arch b/libc/sysdeps/linux/xtensa/Makefile.arch index 23cd08ee5..f3a93caaa 100644 --- a/libc/sysdeps/linux/xtensa/Makefile.arch +++ b/libc/sysdeps/linux/xtensa/Makefile.arch @@ -10,3 +10,6 @@ SSRC-y := bsd-_setjmp.S bsd-setjmp.S setjmp.S clone.S \ sigrestorer.S syscall.S mmap.S windowspill.S __longjmp.S vfork.S CSRC-$(if $(UCLIBC_HAS_THREADS_NATIVE),,y) += fork.c + +CSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += makecontext.c +SSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += setcontext.S getcontext.S swapcontext.S __start_context.S -- cgit v1.2.3