Module Name: src
Committed By: tsutsui
Date: Fri Aug 6 05:22:21 UTC 2021
Modified Files:
src/sys/arch/hp300/hp300: machdep.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 src/sys/arch/hp300/hp300/machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hp300/hp300/machdep.c
diff -u src/sys/arch/hp300/hp300/machdep.c:1.234 src/sys/arch/hp300/hp300/machdep.c:1.235
--- src/sys/arch/hp300/hp300/machdep.c:1.234 Thu Jun 11 19:20:43 2020
+++ src/sys/arch/hp300/hp300/machdep.c Fri Aug 6 05:22:21 2021
@@ -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;
}