Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Fix bug in vmapbuf, was using len before ...
details: https://anonhg.NetBSD.org/src/rev/98f06b90e653
branches: trunk
changeset: 515263:98f06b90e653
user: chris <chris%NetBSD.org@localhost>
date: Thu Sep 20 23:32:23 2001 +0000
description:
Fix bug in vmapbuf, was using len before it had been adjusted. Found by Frank while Luke was tracking down a bug.
diffstat:
sys/arch/arm/arm32/vm_machdep.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 58d7cedc5277 -r 98f06b90e653 sys/arch/arm/arm32/vm_machdep.c
--- a/sys/arch/arm/arm32/vm_machdep.c Thu Sep 20 22:46:04 2001 +0000
+++ b/sys/arch/arm/arm32/vm_machdep.c Thu Sep 20 23:32:23 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.6 2001/09/10 21:19:35 chris Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.7 2001/09/20 23:32:23 chris Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -324,11 +324,10 @@
if ((bp->b_flags & B_PHYS) == 0)
panic("vmapbuf");
- taddr = uvm_km_valloc_wait(phys_map, len);
-
faddr = trunc_page((vaddr_t)bp->b_saveaddr = bp->b_data);
off = (vaddr_t)bp->b_data - faddr;
len = round_page(off + len);
+ taddr = uvm_km_valloc_wait(phys_map, len);
bp->b_data = (caddr_t)(taddr + off);
/*
Home |
Main Index |
Thread Index |
Old Index