Module Name: src
Committed By: maxv
Date: Wed Nov 13 09:47:37 UTC 2019
Modified Files:
src/sys/arch/usermode/usermode: db_memrw.c
Log Message:
Switch to the new PTE naming.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/usermode/db_memrw.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/usermode/usermode/db_memrw.c
diff -u src/sys/arch/usermode/usermode/db_memrw.c:1.5 src/sys/arch/usermode/usermode/db_memrw.c:1.6
--- src/sys/arch/usermode/usermode/db_memrw.c:1.5 Sat Mar 9 08:42:26 2019
+++ src/sys/arch/usermode/usermode/db_memrw.c Wed Nov 13 09:47:37 2019
@@ -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 @@ db_write_text(vaddr_t addr, size_t size,
* 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);