diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2021-08-06 05:22:21 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2021-08-06 05:22:21 +0000 |
| commit | b74b82cbd7bca010241aed1bdaa6cdf5fb3ac225 (patch) | |
| tree | 2eb67eb12fd698f5deb631fec9050f7cee1fa7ef /sys | |
| parent | 1a2f6b400b08611eb6797b9514a1fa4482fc425a (diff) | |
Add comments how mm_md_physacc() for hp300 works.
mm_md_physacc() for all other hp300 pmap based m68k ports that copied
hp300 implemantation should have been fixed properly.
XXX: no mm(9) man pages that describe MD implementation API definitions.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index 10736ad36bb..88c548c0459 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.234 2020/06/11 19:20:43 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.235 2021/08/06 05:22:21 tsutsui Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.234 2020/06/11 19:20:43 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.235 2021/08/06 05:22:21 tsutsui Exp $"); #include "opt_ddb.h" #include "opt_compat_netbsd.h" @@ -1164,6 +1164,10 @@ int mm_md_physacc(paddr_t pa, vm_prot_t prot) { + /* + * On the hp300, physical RAM is always located at the end of + * the physical address space, i.e. from 0xffffffff to lowram. + */ return (pa < lowram || pa >= 0xfffffffc) ? EFAULT : 0; } |
