Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/acpi Fix size calculation in acpi_md_OsUnmapMemory
details: https://anonhg.NetBSD.org/src/rev/a7d426386127
branches: trunk
changeset: 445183:a7d426386127
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Oct 16 16:38:22 2018 +0000
description:
Fix size calculation in acpi_md_OsUnmapMemory
diffstat:
sys/arch/arm/acpi/acpi_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9cab2540305c -r a7d426386127 sys/arch/arm/acpi/acpi_machdep.c
--- a/sys/arch/arm/acpi/acpi_machdep.c Tue Oct 16 16:18:15 2018 +0000
+++ b/sys/arch/arm/acpi/acpi_machdep.c Tue Oct 16 16:38:22 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_machdep.c,v 1.2 2018/10/15 11:35:03 jmcneill Exp $ */
+/* $NetBSD: acpi_machdep.c,v 1.3 2018/10/16 16:38:22 jmcneill Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.2 2018/10/15 11:35:03 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.3 2018/10/16 16:38:22 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -122,7 +122,7 @@
vsize_t osz;
ova = trunc_page((vaddr_t)va);
- osz = round_page((vaddr_t)va + size) - (vaddr_t)va;
+ osz = round_page((vaddr_t)va + size) - ova;
pmap_kremove(ova, osz);
pmap_update(pmap_kernel());
Home |
Main Index |
Thread Index |
Old Index