From 4de6112e428ad340a42d15f53e3be66a67f25ae3 Mon Sep 17 00:00:00 2001 From: cgd Date: Fri, 28 Jan 1994 21:23:49 +0000 Subject: [PATCH] put checks for SLOAD back in (XXX) for now --- sys/arch/i386/i386/process_machdep.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sys/arch/i386/i386/process_machdep.c b/sys/arch/i386/i386/process_machdep.c index 2e764e54aa1a..1698d84d4d49 100644 --- a/sys/arch/i386/i386/process_machdep.c +++ b/sys/arch/i386/i386/process_machdep.c @@ -37,7 +37,7 @@ * From: * Id: procfs_i386.c,v 4.1 1993/12/17 10:47:45 jsp Rel * - * $Id: process_machdep.c,v 1.3 1994/01/20 21:22:08 ws Exp $ + * $Id: process_machdep.c,v 1.4 1994/01/28 21:23:49 cgd Exp $ */ /* @@ -87,6 +87,9 @@ process_read_regs(p, regs) void *ptr; struct trapframe *tp; + if ((p->p_flag & SLOAD) == 0) + return (EIO); + ptr = (char *) p->p_addr + ((char *) p->p_regs - (char *) kstack); tp = ptr; @@ -117,6 +120,9 @@ process_write_regs(p, regs) struct trapframe *tp; int eflags; + if ((p->p_flag & SLOAD) == 0) + return (EIO); + ptr = (char *)p->p_addr + ((char *) p->p_regs - (char *) kstack); tp = ptr; @@ -151,6 +157,9 @@ process_sstep(p, sstep) void *ptr; struct trapframe *tp; + if ((p->p_flag & SLOAD) == 0) + return (EIO); + ptr = (char *) p->p_addr + ((char *) p->p_regs - (char *) kstack); tp = ptr; @@ -177,6 +186,9 @@ process_set_pc(p, addr) void *ptr; struct trapframe *tp; + if ((p->p_flag & SLOAD) == 0) + return (EIO); + ptr = (char *) p->p_addr + ((char *) p->p_regs - (char *) kstack); tp = ptr;