Module Name:    src
Committed By:   skrll
Date:           Sun Aug  9 07:09:35 UTC 2020

Modified Files:
        src/sys/arch/mips/mips: vm_machdep.c

Log Message:
Add a comment


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/sys/arch/mips/mips/vm_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/mips/mips/vm_machdep.c
diff -u src/sys/arch/mips/mips/vm_machdep.c:1.160 src/sys/arch/mips/mips/vm_machdep.c:1.161
--- src/sys/arch/mips/mips/vm_machdep.c:1.160	Wed Nov 20 19:37:52 2019
+++ src/sys/arch/mips/mips/vm_machdep.c	Sun Aug  9 07:09:35 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: vm_machdep.c,v 1.160 2019/11/20 19:37:52 pgoyette Exp $	*/
+/*	$NetBSD: vm_machdep.c,v 1.161 2020/08/09 07:09:35 skrll Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.160 2019/11/20 19:37:52 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.161 2020/08/09 07:09:35 skrll Exp $");
 
 #include "opt_ddb.h"
 #include "opt_cputype.h"
@@ -120,6 +120,10 @@ cpu_lwp_fork(struct lwp *l1, struct lwp 
 		l2->l_md.md_upte[i] = 0;
 	}
 	if (!pmap_md_direct_mapped_vaddr_p(ua2)) {
+		/*
+		 * UPAGES has to be 2 for 4KB PAGE_SIZE
+		 * UPAGES has to be 1 for >= 8KB PAGE_SIZE
+		 */
 		CTASSERT((PGSHIFT == 12) == (UPAGES == 2));
 		pt_entry_t * const pte = pmap_pte_lookup(pmap_kernel(), ua2);
 		const uint32_t x = MIPS_HAS_R4K_MMU

Reply via email to