Source-Changes-HG archive

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

[src/trunk]: src/sys/arch IOM_RAM_BEGIN is changed to specify physical address.



details:   https://anonhg.NetBSD.org/src/rev/89543a528675
branches:  trunk
changeset: 526736:89543a528675
user:      uch <uch%NetBSD.org@localhost>
date:      Thu May 09 12:32:09 2002 +0000

description:
IOM_RAM_BEGIN is changed to specify physical address.

diffstat:

 sys/arch/dreamcast/conf/std.dreamcast |  4 ++--
 sys/arch/sh3/sh3/cache.c              |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r dca0c7ee50d0 -r 89543a528675 sys/arch/dreamcast/conf/std.dreamcast
--- a/sys/arch/dreamcast/conf/std.dreamcast     Thu May 09 12:31:38 2002 +0000
+++ b/sys/arch/dreamcast/conf/std.dreamcast     Thu May 09 12:32:09 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: std.dreamcast,v 1.4 2002/05/03 01:36:02 thorpej Exp $
+# $NetBSD: std.dreamcast,v 1.5 2002/05/09 12:32:32 uch Exp $
 #
 # standard, required NetBSD/dreamcast 'options'
 
@@ -13,7 +13,7 @@
 #options       PCLOCK=50000000                 # 50MHz 
 options        IOM_ROM_BEGIN=0x00000000
 options        IOM_ROM_SIZE=0x00100000         # 1MB
-options        IOM_RAM_BEGIN=0x8c000000
+options        IOM_RAM_BEGIN=0x0c000000
 options        IOM_RAM_SIZE=0x01000000         # 16MB
 
 makeoptions    ENDIAN="-EL"
diff -r dca0c7ee50d0 -r 89543a528675 sys/arch/sh3/sh3/cache.c
--- a/sys/arch/sh3/sh3/cache.c  Thu May 09 12:31:38 2002 +0000
+++ b/sys/arch/sh3/sh3/cache.c  Thu May 09 12:32:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache.c,v 1.5 2002/04/28 17:10:37 uch Exp $    */
+/*     $NetBSD: cache.c,v 1.6 2002/05/09 12:32:09 uch Exp $    */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -149,7 +149,7 @@
 void
 __cache_flush()
 {
-       __volatile__ int *p = (int *)IOM_RAM_BEGIN;
+       __volatile__ int *p = (int *)SH3_PHYS_TO_P1SEG(IOM_RAM_BEGIN);
        int i;
        int d;
 



Home | Main Index | Thread Index | Old Index