Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/sh3 use definition of memory size for physical ...



details:   https://anonhg.NetBSD.org/src/rev/547a3e9bef50
branches:  trunk
changeset: 512997:547a3e9bef50
user:      ichiro <ichiro%NetBSD.org@localhost>
date:      Fri Jul 20 14:19:59 2001 +0000

description:
use definition of memory size for physical area
0x20000000 -> SH3_P1234SEG_SIZE

diffstat:

 sys/arch/sh3/sh3/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2e77ab3e28bb -r 547a3e9bef50 sys/arch/sh3/sh3/pmap.c
--- a/sys/arch/sh3/sh3/pmap.c   Fri Jul 20 13:43:50 2001 +0000
+++ b/sys/arch/sh3/sh3/pmap.c   Fri Jul 20 14:19:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.24 2001/06/02 18:09:20 chs Exp $    */
+/*     $NetBSD: pmap.c,v 1.25 2001/07/20 14:19:59 ichiro Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -3571,7 +3571,7 @@
 #ifdef SH4
        cacheflush();
        if (va >= SH3_P1SEG_BASE && va <= SH3_P2SEG_END)
-               return (va|0x20000000);
+               return (va|SH3_P1234SEG_SIZE);
 #else
        if (va >= SH3_P1SEG_BASE && va <= SH3_P2SEG_END)
                return va;
@@ -3580,7 +3580,7 @@
        /* XXX P4SEG? */
 
 #ifdef SH4
-       return (*vtopte(va) & PG_FRAME) | (va & ~PG_FRAME) | 0x20000000;
+       return (*vtopte(va) & PG_FRAME) | (va & ~PG_FRAME) | SH3_P1234SEG_SIZE;
 #else
        return (*vtopte(va) & PG_FRAME) | (va & ~PG_FRAME);
 #endif



Home | Main Index | Thread Index | Old Index