Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3 fix around PTR and PDR



details:   https://anonhg.NetBSD.org/src/rev/caf8f1f1480b
branches:  trunk
changeset: 526150:caf8f1f1480b
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Apr 26 10:22:53 2002 +0000

description:
fix around PTR and PDR

diffstat:

 sys/arch/sh3/dev/sci.c        |  4 ++--
 sys/arch/sh3/include/scireg.h |  5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r a21ae50b195c -r caf8f1f1480b sys/arch/sh3/dev/sci.c
--- a/sys/arch/sh3/dev/sci.c    Fri Apr 26 04:34:41 2002 +0000
+++ b/sys/arch/sh3/dev/sci.c    Fri Apr 26 10:22:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sci.c,v 1.22 2002/03/24 18:04:42 uch Exp $ */
+/* $NetBSD: sci.c,v 1.23 2002/04/26 10:22:54 msaitoh Exp $ */
 
 /*-
  * Copyright (C) 1999 T.Horiuchi and SAITOH Masanobu.  All rights reserved.
@@ -1165,7 +1165,7 @@
        if (ISSET(ssr, SCSSR_FER)) {
                SHREG_SCSSR &= ~(SCSSR_ORER | SCSSR_PER | SCSSR_FER);
 #if defined(DDB) || defined(KGDB)
-#ifdef SH3
+#ifdef SH4
                if ((SHREG_SCSPTR & SCSPTR_SPB0DT) != 0) {
 #else
                if ((SHREG_SCSPDR & SCSPDR_SCP0DT) != 0) {
diff -r a21ae50b195c -r caf8f1f1480b sys/arch/sh3/include/scireg.h
--- a/sys/arch/sh3/include/scireg.h     Fri Apr 26 04:34:41 2002 +0000
+++ b/sys/arch/sh3/include/scireg.h     Fri Apr 26 10:22:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scireg.h,v 1.5 2002/04/25 20:17:04 msaitoh Exp $ */
+/* $NetBSD: scireg.h,v 1.6 2002/04/26 10:22:53 msaitoh Exp $ */
 
 /*-
  * Copyright (C) 1999 SAITOH Masanobu.  All rights reserved.
@@ -43,7 +43,7 @@
 #define SHREG_SCTDR    (*(volatile unsigned char *)    0xFFFFFE86)
 #define SHREG_SCSSR    (*(volatile unsigned char *)    0xFFFFFE88)
 #define SHREG_SCRDR    (*(volatile unsigned char *)    0xFFFFFE8A)
-#define SHREG_SCSPTR   (*(volatile unsigned char *)    0xffffff7c)
+#define SHREG_SCSPDR   (*(volatile unsigned char *)    0xf4000136)
 
 #else
 
@@ -55,6 +55,7 @@
 #define SHREG_SCTDR    (*(volatile unsigned char *)    0xffe0000c)
 #define SHREG_SCSSR    (*(volatile unsigned char *)    0xffe00010)
 #define SHREG_SCRDR    (*(volatile unsigned char *)    0xffe00014)
+#define SHREG_SCSPTR   (*(volatile unsigned char *)    0xffe0001c)
 
 #endif
 



Home | Main Index | Thread Index | Old Index