Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpcmips/tx fix memory size calcuration bug.



details:   https://anonhg.NetBSD.org/src/rev/8c57c7978fbd
branches:  trunk
changeset: 520222:8c57c7978fbd
user:      uch <uch%NetBSD.org@localhost>
date:      Sat Jan 05 04:47:30 2002 +0000

description:
fix memory size calcuration bug.

diffstat:

 sys/arch/hpcmips/tx/tx39.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 21d9322c9c04 -r 8c57c7978fbd sys/arch/hpcmips/tx/tx39.c
--- a/sys/arch/hpcmips/tx/tx39.c        Sat Jan 05 02:23:30 2002 +0000
+++ b/sys/arch/hpcmips/tx/tx39.c        Sat Jan 05 04:47:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tx39.c,v 1.28 2002/01/02 13:08:05 uch Exp $ */
+/*     $NetBSD: tx39.c,v 1.29 2002/01/05 04:47:30 uch Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -232,6 +232,11 @@
  memend_found:
        mem_clusters[mem_cluster_cnt].start = start;
        mem_clusters[mem_cluster_cnt].size = page - startaddr;
+
+       /* skip kernel area */
+       if (mem_cluster_cnt == 1)
+               mem_clusters[mem_cluster_cnt].size -= start;
+
        mem_cluster_cnt++;
 #undef MAGIC0
 #undef MAGIC1



Home | Main Index | Thread Index | Old Index