summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/xtensa/sysdep.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2022-06-17 02:40:11 -0700
committerWaldemar Brodkorb <wbx@openadk.org>2022-06-20 12:17:17 +0200
commit6561433a6680b34c04dd4581e340f96cc7dfb04c (patch)
tree256e5adccc7312c7cd54e4401c3d0a850d350852 /libc/sysdeps/linux/xtensa/sysdep.h
parent6d45c0fe89e6de7d35a991051ec7f9feaaaf3729 (diff)
xtensa: implement user context manipulation functions
Implement getcontext, makecontext, setcontext and swapcontext. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/xtensa/sysdep.h')
-rw-r--r--libc/sysdeps/linux/xtensa/sysdep.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/xtensa/sysdep.h b/libc/sysdeps/linux/xtensa/sysdep.h
index 0671f0783..80b3f30fc 100644
--- a/libc/sysdeps/linux/xtensa/sysdep.h
+++ b/libc/sysdeps/linux/xtensa/sysdep.h
@@ -39,12 +39,15 @@
#endif
-#define ENTRY(name) \
+#define ENTRY_PREFIX(name) \
.globl C_SYMBOL_NAME(name); \
ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name), @function); \
.align ALIGNARG(2); \
LITERAL_POSITION; \
- C_LABEL(name) \
+ C_LABEL(name)
+
+#define ENTRY(name) \
+ ENTRY_PREFIX(name) \
abi_entry(sp, FRAMESIZE);
#define HIDDEN_ENTRY(name) \