hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/xtensa/include/asm/ptrace.h
....@@ -39,6 +39,8 @@
3939 * +-----------------------+ --------
4040 */
4141
42
+#define NO_SYSCALL (-1)
43
+
4244 #ifndef __ASSEMBLY__
4345
4446 #include <asm/coprocessor.h>
....@@ -78,7 +80,7 @@
7880 unsigned long areg[16];
7981 };
8082
81
-#include <variant/core.h>
83
+#include <asm/core.h>
8284
8385 # define arch_has_single_step() (1)
8486 # define task_pt_regs(tsk) ((struct pt_regs*) \
....@@ -100,6 +102,11 @@
100102
101103 #define user_stack_pointer(regs) ((regs)->areg[1])
102104
105
+static inline unsigned long regs_return_value(struct pt_regs *regs)
106
+{
107
+ return regs->areg[2];
108
+}
109
+
103110 #else /* __ASSEMBLY__ */
104111
105112 # include <asm/asm-offsets.h>