From a203663eae6cc163bcad8ba204569f04dd66d240 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 2 Jan 2006 18:15:56 +0000 Subject: No need to check for P_INMEM in process_set_pc() and process_sstep(), as these function are only invoked between PHOLD and PRELE. --- sys/arch/vax/vax/machdep.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c index cc971d7a31d..3c53c95c0db 100644 --- a/sys/arch/vax/vax/machdep.c +++ b/sys/arch/vax/vax/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.74 2005/11/06 22:21:33 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.75 2006/01/02 18:15:55 miod Exp $ */ /* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */ /* @@ -663,9 +663,6 @@ process_set_pc(p, addr) struct trapframe *tf; void *ptr; - if ((p->p_flag & P_INMEM) == 0) - return (EIO); - ptr = (char *) p->p_addr->u_pcb.framep; tf = ptr; @@ -681,9 +678,6 @@ process_sstep(p, sstep) void *ptr; struct trapframe *tf; - if ((p->p_flag & P_INMEM) == 0) - return (EIO); - ptr = p->p_addr->u_pcb.framep; tf = ptr; -- cgit v1.2.3