diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2023-11-10 12:03:47 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2024-01-05 16:28:57 +0100 |
commit | 1e41c415e21ff03ddf5c3725b608d0e4f0c239e3 (patch) | |
tree | eec36d7248634f1aafc700dd9ba4bba0b8bd6590 /arch/um/os-Linux | |
parent | 1ca1443570e4085c180ecc657d319c21b22a76f6 (diff) |
um: Remove unused register save/restore functions
These functions were only used when calling PTRACE_ARCH_PRCTL, but this
code has been removed.
Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/os-Linux')
-rw-r--r-- | arch/um/os-Linux/registers.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/um/os-Linux/registers.c b/arch/um/os-Linux/registers.c index b123955be7ac..bd80b921add0 100644 --- a/arch/um/os-Linux/registers.c +++ b/arch/um/os-Linux/registers.c @@ -11,26 +11,6 @@ #include <sysdep/ptrace_user.h> #include <registers.h> -int save_registers(int pid, struct uml_pt_regs *regs) -{ - int err; - - err = ptrace(PTRACE_GETREGS, pid, 0, regs->gp); - if (err < 0) - return -errno; - return 0; -} - -int restore_pid_registers(int pid, struct uml_pt_regs *regs) -{ - int err; - - err = ptrace(PTRACE_SETREGS, pid, 0, regs->gp); - if (err < 0) - return -errno; - return 0; -} - /* This is set once at boot time and not changed thereafter */ static unsigned long exec_regs[MAX_REG_NR]; |