Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/usermode Switch to the new PTE naming.



details:   https://anonhg.NetBSD.org/src/rev/62aaa67a7e2c
branches:  trunk
changeset: 966724:62aaa67a7e2c
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Nov 13 09:47:37 2019 +0000

description:
Switch to the new PTE naming.

diffstat:

 sys/arch/usermode/usermode/db_memrw.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 67a011540e87 -r 62aaa67a7e2c sys/arch/usermode/usermode/db_memrw.c
--- a/sys/arch/usermode/usermode/db_memrw.c     Wed Nov 13 07:56:10 2019 +0000
+++ b/sys/arch/usermode/usermode/db_memrw.c     Wed Nov 13 09:47:37 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_memrw.c,v 1.5 2019/03/09 08:42:26 maxv Exp $        */
+/*     $NetBSD: db_memrw.c,v 1.6 2019/11/13 09:47:37 maxv Exp $        */
 
 /*-
  * Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.5 2019/03/09 08:42:26 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.6 2019/11/13 09:47:37 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -162,7 +162,7 @@
                 * with this mapping and subtract it from the
                 * total size.
                 */
-               if (pte & PG_PS)
+               if (pte & PTE_PS)
                        limit = NBPD_L2 - (addr & (NBPD_L2 - 1));
                else
                        limit = PAGE_SIZE - (addr & PGOFSET);



Home | Main Index | Thread Index | Old Index