summaryrefslogtreecommitdiff
path: root/arch/m68k/include/uapi
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@linux-m68k.org>2022-04-27 16:32:15 +0300
committerGreg Ungerer <gerg@linux-m68k.org>2022-05-16 06:18:30 +0300
commit67b660b1f7e5611108e05ca97bd387e141fc61b6 (patch)
tree094527ad51e6bed9e77a385b81de64b77c6ccdb2 /arch/m68k/include/uapi
parentbd53e442e8373d8e10898d1e99d54e825535e316 (diff)
downloadlinux-67b660b1f7e5611108e05ca97bd387e141fc61b6.tar.xz
m68knommu: add definitions to support elf_fdpic program loader
Add a few required defines to support using the binfmt_elf_fdpic loader on the m68k architecture. The values are defined to be consistent with those used on arm and sh which support this too. The most important m68k specific change is the register initialization. The pt_reg structure only contains a subset of the architecture general registers, so we are more limited than to be expected on what can be used. Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include/uapi')
-rw-r--r--arch/m68k/include/uapi/asm/ptrace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/m68k/include/uapi/asm/ptrace.h b/arch/m68k/include/uapi/asm/ptrace.h
index 19a1b9d0d858..5b50ea592e00 100644
--- a/arch/m68k/include/uapi/asm/ptrace.h
+++ b/arch/m68k/include/uapi/asm/ptrace.h
@@ -74,7 +74,12 @@ struct switch_stack {
#define PTRACE_GET_THREAD_AREA 25
+#define PTRACE_GETFDPIC 31
+
#define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */
+#define PTRACE_GETFDPIC_EXEC 0
+#define PTRACE_GETFDPIC_INTERP 1
+
#endif /* __ASSEMBLY__ */
#endif /* _UAPI_M68K_PTRACE_H */