Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm uvm_page_to_phys: mask off the lower bits.
details: https://anonhg.NetBSD.org/src/rev/8099aca9c967
branches: trunk
changeset: 1005804:8099aca9c967
user: ad <ad%NetBSD.org@localhost>
date: Sat Dec 21 15:16:14 2019 +0000
description:
uvm_page_to_phys: mask off the lower bits.
diffstat:
sys/uvm/uvm_page.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 90312d271e9a -r 8099aca9c967 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Sat Dec 21 15:12:34 2019 +0000
+++ b/sys/uvm/uvm_page.c Sat Dec 21 15:16:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.210 2019/12/21 14:50:34 ad Exp $ */
+/* $NetBSD: uvm_page.c,v 1.211 2019/12/21 15:16:14 ad Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.210 2019/12/21 14:50:34 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.211 2019/12/21 15:16:14 ad Exp $");
#include "opt_ddb.h"
#include "opt_uvm.h"
@@ -608,7 +608,7 @@
uvm_vm_page_to_phys(const struct vm_page *pg)
{
- return pg->phys_addr;
+ return pg->phys_addr & ~(PAGE_SIZE - 1);
}
/*
Home |
Main Index |
Thread Index |
Old Index