Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/uebayasi-xip]: src/sys/miscfs/genfs vm_physseg::start is PFN, not mdpgno...
details: https://anonhg.NetBSD.org/src/rev/e61bbc17e99f
branches: uebayasi-xip
changeset: 751771:e61bbc17e99f
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Thu Aug 12 02:53:09 2010 +0000
description:
vm_physseg::start is PFN, not mdpgno, so don't decode it using
pmap_phys_address().
diffstat:
sys/miscfs/genfs/genfs_io.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 61c567b8b6ac -r e61bbc17e99f sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c Wed Aug 11 14:03:58 2010 +0000
+++ b/sys/miscfs/genfs/genfs_io.c Thu Aug 12 02:53:09 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_io.c,v 1.36.2.19 2010/08/11 13:33:03 uebayasi Exp $ */
+/* $NetBSD: genfs_io.c,v 1.36.2.20 2010/08/12 02:53:09 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.36.2.19 2010/08/11 13:33:03 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.36.2.20 2010/08/12 02:53:09 uebayasi Exp $");
#include "opt_xip.h"
@@ -848,7 +848,7 @@
seg_off = (blkno << dev_bshift) + (off - (lbn << fs_bshift));
KASSERT((seg_off & PAGE_MASK) == 0);
pg = seg->pgs + (seg_off >> PAGE_SHIFT);
- KASSERT(pg->phys_addr == pmap_phys_address(seg->start) + seg_off);
+ KASSERT(pg->phys_addr == (seg->start << PAGE_SHIFT) + seg_off);
pps[i] = pg;
}
Home |
Main Index |
Thread Index |
Old Index