Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/nslu2 Catch up with new pmap_devmap implemen...
details: https://anonhg.NetBSD.org/src/rev/f8af917a6e7f
branches: trunk
changeset: 376422:f8af917a6e7f
user: rin <rin%NetBSD.org@localhost>
date: Sat Jun 17 11:22:20 2023 +0000
description:
Catch up with new pmap_devmap implementation.
Now, hardcoded VA's should be aligned to L1 section (1M) boundaries.
Rather, just disable ones if there's no need for statically mapping.
diffstat:
sys/arch/evbarm/nslu2/nslu2_machdep.c | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diffs (52 lines):
diff -r 7ad05f028c53 -r f8af917a6e7f sys/arch/evbarm/nslu2/nslu2_machdep.c
--- a/sys/arch/evbarm/nslu2/nslu2_machdep.c Fri Jun 16 23:51:31 2023 +0000
+++ b/sys/arch/evbarm/nslu2/nslu2_machdep.c Sat Jun 17 11:22:20 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nslu2_machdep.c,v 1.37 2023/06/14 10:30:34 rin Exp $ */
+/* $NetBSD: nslu2_machdep.c,v 1.38 2023/06/17 11:22:20 rin Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nslu2_machdep.c,v 1.37 2023/06/14 10:30:34 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nslu2_machdep.c,v 1.38 2023/06/17 11:22:20 rin Exp $");
#include "opt_arm_debug.h"
#include "opt_console.h"
@@ -351,6 +351,19 @@ static const struct pmap_devmap nslu2_de
IXP425_IO_SIZE
),
+ /* SDRAM Controller */
+ DEVMAP_ENTRY(
+ IXP425_MCU_VBASE,
+ IXP425_MCU_HWBASE,
+ IXP425_MCU_SIZE
+ ),
+
+ /*
+ * No need to map the following entries statically.
+ * If you revive these, align VBASE's to L1 section
+ * boundaries (see pmap_devmap.c).
+ */
+#if 0
/* Expansion Bus */
DEVMAP_ENTRY(
IXP425_EXP_VBASE,
@@ -365,13 +378,6 @@ static const struct pmap_devmap nslu2_de
IXP425_PCI_SIZE
),
- /* SDRAM Controller */
- DEVMAP_ENTRY(
- IXP425_MCU_VBASE,
- IXP425_MCU_HWBASE,
- IXP425_MCU_SIZE
- ),
-
/* PCI Memory Space */
DEVMAP_ENTRY(
IXP425_PCI_MEM_VBASE,
Home |
Main Index |
Thread Index |
Old Index