Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Tidy up some ugly output from mips_page_p...
details: https://anonhg.NetBSD.org/src/rev/0484c2122d13
branches: trunk
changeset: 934040:0484c2122d13
user: simonb <simonb%NetBSD.org@localhost>
date: Thu Jun 04 15:42:31 2020 +0000
description:
Tidy up some ugly output from mips_page_physload() when a segment starts
and finishes in the same page.
diffstat:
sys/arch/mips/mips/mips_machdep.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r b95b4eed30eb -r 0484c2122d13 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Thu Jun 04 14:33:28 2020 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Thu Jun 04 15:42:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_machdep.c,v 1.281 2020/05/23 11:33:56 simonb Exp $ */
+/* $NetBSD: mips_machdep.c,v 1.282 2020/06/04 15:42:31 simonb Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.281 2020/05/23 11:33:56 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.282 2020/06/04 15:42:31 simonb Exp $");
#define __INTR_PRIVATE
#include "opt_cputype.h"
@@ -2140,6 +2140,17 @@
paddr_t segstart = round_page(segs->start);
const paddr_t segfinish = trunc_page(segs->start + segs->size);
+ if (segstart >= segfinish) {
+ /*
+ * This is purely cosmetic, to avoid output like
+ * phys segment: 0xffffffffffffe000 @ 0xffb6000
+ * when a segment starts and finishes in the same page.
+ */
+ printf("phys segment: %#"PRIxPADDR" @ %#"PRIxPADDR
+ " (short)\n", (paddr_t)segs->size, segstart);
+ continue;
+ }
+
printf("phys segment: %#"PRIxPADDR" @ %#"PRIxPADDR"\n",
segfinish - segstart, segstart);
Home |
Main Index |
Thread Index |
Old Index