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 Fix broken registers.
details: https://anonhg.NetBSD.org/src/rev/af5f13bbf457
branches: trunk
changeset: 802048:af5f13bbf457
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sat Aug 30 13:24:44 2014 +0000
description:
Fix broken registers.
diffstat:
sys/arch/evbarm/marvell/marvell_start.S | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (55 lines):
diff -r 4b2c6c24c47a -r af5f13bbf457 sys/arch/evbarm/marvell/marvell_start.S
--- a/sys/arch/evbarm/marvell/marvell_start.S Sat Aug 30 13:19:52 2014 +0000
+++ b/sys/arch/evbarm/marvell/marvell_start.S Sat Aug 30 13:24:44 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: marvell_start.S,v 1.6 2014/04/14 20:53:28 matt Exp $ */
+/* $NetBSD: marvell_start.S,v 1.7 2014/08/30 13:24:44 kiyohara 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.6 2014/04/14 20:53:28 matt Exp $")
+RCSID("$NetBSD: marvell_start.S,v 1.7 2014/08/30 13:24:44 kiyohara Exp $")
#ifndef SDRAM_START
#define SDRAM_START 0x00000000
@@ -127,10 +127,10 @@
#ifdef SHEEVA_L2_CACHE_WT
/* L2 WT Mode */
- ldr r2, =0xf1020128 /* CPU L2 Configuration Register */
- ldr r3, [r2]
- bic r3, r3, #0x10 /* Force Write Through */
- str r3, [r2]
+ ldr r5, =0xf1020128 /* CPU L2 Configuration Register */
+ ldr r6, [r5]
+ bic r6, r6, #0x10 /* Force Write Through */
+ str r6, [r5]
#endif
1:
@@ -149,16 +149,16 @@
adr r6, marvell_interregs_pbase
ldr r7, [r6]
add r7, r7, #0x40000
- ldr r8, [r7]
- bic r8, r8, 0xff000000
- bic r8, r8, 0x00ff0000
+ ldr r6, [r7]
+ bic r6, r6, 0xff000000
+ bic r6, r6, 0x00ff0000
/*
* Some SoC returns ugly DeviceID. Fixup it.
*/
adr r5, devid
ldr r5, [r5]
- orr r8, r8, r5, lsl #16
- str r8, [r7]
+ orr r6, r6, r5, lsl #16
+ str r6, [r7]
b 1f
devid:
.word MVSOC_FIXUP_DEVID
Home |
Main Index |
Thread Index |
Old Index