--- zzzz-none-000/linux-3.18.24/arch/mips/include/asm/ptrace.h 2015-10-31 20:39:51.000000000 +0000 +++ rtl96-5690pro-762/linux-3.18.24/arch/mips/include/asm/ptrace.h 2024-08-14 08:36:36.000000000 +0000 @@ -60,6 +60,19 @@ extern int ptrace_set_watch_regs(struct task_struct *child, struct pt_watch_regs __user *addr); +#ifdef CONFIG_CPU_RLX +/* Set wmpu */ +#define WMPU_DW 0x1 +#define WMPU_DR 0x2 +#define WMPU_IX 0x4 +#define MODE_MP 0x1 +#define MODE_WP 0x0 + +extern int ptrace_wmpu_set(unsigned long, unsigned long, + unsigned char, unsigned char); +extern void ptrace_wmpu_clear(int); +#endif + /* * Does the process account for user or for system time? */