Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/include fix the calculation of the address ...



details:   https://anonhg.NetBSD.org/src/rev/e254d0788726
branches:  trunk
changeset: 534900:e254d0788726
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Aug 06 06:16:42 2002 +0000

description:
fix the calculation of the address of the IPI dispatch register.

diffstat:

 sys/arch/powerpc/include/openpicreg.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r e7e693275479 -r e254d0788726 sys/arch/powerpc/include/openpicreg.h
--- a/sys/arch/powerpc/include/openpicreg.h     Tue Aug 06 06:16:04 2002 +0000
+++ b/sys/arch/powerpc/include/openpicreg.h     Tue Aug 06 06:16:42 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openpicreg.h,v 1.3 2001/08/30 03:08:52 briggs Exp $    */
+/*     $NetBSD: openpicreg.h,v 1.4 2002/08/06 06:16:42 chs Exp $       */
 
 /*-
  * Copyright (c) 2000 Tsubai Masanari.  All rights reserved.
@@ -85,7 +85,8 @@
  */
 
 /* IPI command reg */
-#define OPENPIC_IPI(cpu, ipi)          (0x20040 + (cpu) * 0x1000 + (ipi))
+#define OPENPIC_IPI(cpu, ipi)          (0x20040 + (cpu) * 0x1000 + \
+                                        (ipi) * 0x10)
 
 /* current task priority reg */
 #define OPENPIC_CPU_PRIORITY(cpu)      (0x20080 + (cpu) * 0x1000)



Home | Main Index | Thread Index | Old Index