Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/aarch64 Physical end should be the end of t...
details: https://anonhg.NetBSD.org/src/rev/020ed5daafc2
branches: trunk
changeset: 836934:020ed5daafc2
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Nov 13 10:30:35 2018 +0000
description:
Physical end should be the end of the last range, not the first.
diffstat:
sys/arch/aarch64/aarch64/aarch64_machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 8ec9595b3d16 -r 020ed5daafc2 sys/arch/aarch64/aarch64/aarch64_machdep.c
--- a/sys/arch/aarch64/aarch64/aarch64_machdep.c Tue Nov 13 09:24:37 2018 +0000
+++ b/sys/arch/aarch64/aarch64/aarch64_machdep.c Tue Nov 13 10:30:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aarch64_machdep.c,v 1.20 2018/11/10 18:29:08 ryo Exp $ */
+/* $NetBSD: aarch64_machdep.c,v 1.21 2018/11/13 10:30:35 jmcneill Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.20 2018/11/10 18:29:08 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.21 2018/11/13 10:30:35 jmcneill Exp $");
#include "opt_arm_debug.h"
#include "opt_ddb.h"
@@ -247,7 +247,8 @@
/* XXX: arm/arm32/bus_dma.c refers physical_{start,end} */
physical_start = bootconfig.dram[0].address;
- physical_end = physical_start + ptoa(bootconfig.dram[0].pages);
+ physical_end = bootconfig.dram[bootconfig.dramblocks - 1].address +
+ ptoa(bootconfig.dram[bootconfig.dramblocks - 1].pages);
/*
* msgbuf is allocated from the bottom of any one of memory blocks
Home |
Main Index |
Thread Index |
Old Index