Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/ttm Multiply by PAGE_SIZE, not PAGE_SH...
details: https://anonhg.NetBSD.org/src/rev/ea1096a24fff
branches: trunk
changeset: 331350:ea1096a24fff
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Aug 09 00:18:58 2014 +0000
description:
Multiply by PAGE_SIZE, not PAGE_SHIFT!
diffstat:
sys/external/bsd/drm2/ttm/ttm_bo_vm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2bf6951cf8e2 -r ea1096a24fff sys/external/bsd/drm2/ttm/ttm_bo_vm.c
--- a/sys/external/bsd/drm2/ttm/ttm_bo_vm.c Fri Aug 08 23:56:57 2014 +0000
+++ b/sys/external/bsd/drm2/ttm/ttm_bo_vm.c Sat Aug 09 00:18:58 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ttm_bo_vm.c,v 1.1 2014/07/16 20:59:58 riastradh Exp $ */
+/* $NetBSD: ttm_bo_vm.c,v 1.2 2014/08/09 00:18:58 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ttm_bo_vm.c,v 1.1 2014/07/16 20:59:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ttm_bo_vm.c,v 1.2 2014/08/09 00:18:58 riastradh Exp $");
#include <sys/types.h>
@@ -183,7 +183,7 @@
((startpage + i) << PAGE_SHIFT), vm_prot, 0);
else
paddr = page_to_phys(u.ttm->pages[startpage + i]);
- ret = -pmap_enter(ufi->orig_map->pmap, vaddr + i*PAGE_SHIFT,
+ ret = -pmap_enter(ufi->orig_map->pmap, vaddr + i*PAGE_SIZE,
paddr, vm_prot, (PMAP_CANFAIL | pgprot));
if (ret)
goto out3;
Home |
Main Index |
Thread Index |
Old Index