diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-07-20 07:03:41 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-07-20 07:03:41 +0000 |
commit | 929b9d10d6a5da3e3a9c3a28a54058cb5e8aee27 (patch) | |
tree | 6b23d41c7f0b15705f23224b90a0ce53adc917cd /sys/arch/alpha | |
parent | 2b801a757e3186b37df886f01269f02dd7b31824 (diff) |
protect against NULL curproc derefs. Enables MMU hits inside interupt
contexts, i.e. IDE works much better now (still some problems though)
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/include/pmap.old.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/alpha/include/pmap.old.h b/sys/arch/alpha/include/pmap.old.h index f70bd18d318..2d765bc70f2 100644 --- a/sys/arch/alpha/include/pmap.old.h +++ b/sys/arch/alpha/include/pmap.old.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.old.h,v 1.2 1997/01/24 19:57:16 niklas Exp $ */ +/* $OpenBSD: pmap.old.h,v 1.3 1997/07/20 07:03:40 niklas Exp $ */ /* $NetBSD: pmap.old.h,v 1.6 1996/11/13 21:13:19 cgd Exp $ */ /* @@ -75,7 +75,8 @@ extern struct pmap kernel_pmap_store; #define pmap_kernel() (&kernel_pmap_store) #define active_pmap(pm) \ - ((pm) == pmap_kernel() || (pm) == curproc->p_vmspace->vm_map.pmap) + ((pm) == pmap_kernel() || \ + (curproc && (pm) == curproc->p_vmspace->vm_map.pmap)) /* * Macros for speed |