diff options
author | Christoph Hellwig <hch@lst.de> | 2022-02-23 08:47:20 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-02-23 08:52:50 +0100 |
commit | 1c4b5ecb7ea190fa3e9f9d6891e6c90b60e04f24 (patch) | |
tree | a9444a92909dc4929e0d1e42301e1d3dbd16c35c /arch/h8300/kernel/ptrace_s.c | |
parent | Merge branch 'for-5.17-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup (diff) | |
download | linux-dev-1c4b5ecb7ea190fa3e9f9d6891e6c90b60e04f24.tar.xz linux-dev-1c4b5ecb7ea190fa3e9f9d6891e6c90b60e04f24.zip |
remove the h8300 architecture
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/h8300/kernel/ptrace_s.c')
-rw-r--r-- | arch/h8300/kernel/ptrace_s.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/arch/h8300/kernel/ptrace_s.c b/arch/h8300/kernel/ptrace_s.c deleted file mode 100644 index ee21f37b7ed4..000000000000 --- a/arch/h8300/kernel/ptrace_s.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * linux/arch/h8300/kernel/ptrace_h8s.c - * ptrace cpu depend helper functions - * - * Yoshinori Sato <ysato@users.sourceforge.jp> - * - * This file is subject to the terms and conditions of the GNU General - * Public License. See the file COPYING in the main directory of - * this archive for more details. - */ - -#include <linux/linkage.h> -#include <linux/sched/signal.h> -#include <linux/errno.h> -#include <asm/ptrace.h> - -#define CCR_MASK 0x6f -#define EXR_TRACE 0x80 - -/* disable singlestep */ -void user_disable_single_step(struct task_struct *child) -{ - unsigned char exr; - - exr = h8300_get_reg(child, PT_EXR); - exr &= ~EXR_TRACE; - h8300_put_reg(child, PT_EXR, exr); -} - -/* enable singlestep */ -void user_enable_single_step(struct task_struct *child) -{ - unsigned char exr; - - exr = h8300_get_reg(child, PT_EXR); - exr |= EXR_TRACE; - h8300_put_reg(child, PT_EXR, exr); -} - -asmlinkage void trace_trap(unsigned long bp) -{ - (void)bp; - force_sig(SIGTRAP); -} |