Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/marvell Catch up with armadaxp_start.S:1.5.....



details:   https://anonhg.NetBSD.org/src/rev/a423c32cf295
branches:  trunk
changeset: 445180:a423c32cf295
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Oct 16 11:28:30 2018 +0000

description:
Catch up with armadaxp_start.S:1.5... if only we had generic start code
for arm

diffstat:

 sys/arch/evbarm/marvell/marvell_start.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r b59ce22ca291 -r a423c32cf295 sys/arch/evbarm/marvell/marvell_start.S
--- a/sys/arch/evbarm/marvell/marvell_start.S   Tue Oct 16 10:25:33 2018 +0000
+++ b/sys/arch/evbarm/marvell/marvell_start.S   Tue Oct 16 11:28:30 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: marvell_start.S,v 1.9 2018/10/15 16:54:55 skrll Exp $ */
+/*     $NetBSD: marvell_start.S,v 1.10 2018/10/16 11:28:30 skrll Exp $ */
 /*
  * Copyright (C) 2005, 2006 WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -66,7 +66,7 @@
 #include <evbarm/marvell/marvellreg.h>
 #include "assym.h"
 
-RCSID("$NetBSD: marvell_start.S,v 1.9 2018/10/15 16:54:55 skrll Exp $")
+RCSID("$NetBSD: marvell_start.S,v 1.10 2018/10/16 11:28:30 skrll Exp $")
 
 #ifndef SDRAM_START
 #define SDRAM_START    0x00000000
@@ -244,8 +244,8 @@
 
 #define MMU_INIT(va,pa,n_sec,attr) \
        .word   n_sec                                       ; \
-       .word   4 * ((va) >> L1_S_SHIFT)                    ; \
-       .word   (pa) | (attr)                               ;
+       .word   4 * (((va) & 0xffffffff) >> L1_S_SHIFT)     ; \
+       .word   ((pa) & 0xffffffff) | (attr)                ;
 
 mmu_init_table:
        /* fill all table VA==PA */



Home | Main Index | Thread Index | Old Index