diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-11-09 22:46:39 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-11-09 22:46:39 +0000 |
commit | 2e175abf225ddf11422c3666f97363dad68fbcaa (patch) | |
tree | e054e2cc7a91018bac407612b67fb14dede386c4 /sys/arch | |
parent | dd2dd9571f2336983b4c3694a2bd7b16580538fe (diff) |
Do not bother checking for curproc != NULL if we know a trap comes from
usermode, since curproc can not be NULL outside the kernel.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/m88k/m88k/eh_common.S | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/m88k/m88k/eh_common.S b/sys/arch/m88k/m88k/eh_common.S index 83ca5f7e866..e148264fb49 100644 --- a/sys/arch/m88k/m88k/eh_common.S +++ b/sys/arch/m88k/m88k/eh_common.S @@ -1,4 +1,4 @@ -/* $OpenBSD: eh_common.S,v 1.26 2007/10/16 04:57:39 miod Exp $ */ +/* $OpenBSD: eh_common.S,v 1.27 2007/11/09 22:46:38 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -2360,11 +2360,8 @@ ASLOCAL(no_softint) ldcr r2, CPU ld r3, r2, CI_CURPROC - bcnd eq0, r3, _ASM_LABEL(no_ast) /* no AST if no process! */ ld r2, r3, P_ASTPENDING - bcnd.n eq0, r2, _ASM_LABEL(no_ast) /* .n safe since the first - instruction of CALL() is - safe in a delay slot. */ + bcnd.n eq0, r2, _ASM_LABEL(no_ast) /* * trap(AST,...) will service ast's. */ |