Module Name:    src
Committed By:   matt
Date:           Tue Feb  8 06:14:50 UTC 2011

Modified Files:
        src/sys/arch/powerpc/oea: altivec.c
        src/sys/arch/powerpc/powerpc: fpu.c

Log Message:
Powerpc send_ipi use ci_cpuid, not cpu_index


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/oea/altivec.c
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/powerpc/powerpc/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/oea/altivec.c
diff -u src/sys/arch/powerpc/oea/altivec.c:1.20 src/sys/arch/powerpc/oea/altivec.c:1.21
--- src/sys/arch/powerpc/oea/altivec.c:1.20	Sun Jan 23 17:36:09 2011
+++ src/sys/arch/powerpc/oea/altivec.c	Tue Feb  8 06:14:50 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: altivec.c,v 1.20 2011/01/23 17:36:09 matt Exp $	*/
+/*	$NetBSD: altivec.c,v 1.21 2011/02/08 06:14:50 matt Exp $	*/
 
 /*
  * Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.20 2011/01/23 17:36:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.21 2011/02/08 06:14:50 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -177,7 +177,7 @@
 	if ((l->l_md.md_flags & MDLWP_OWNVEC) == 0)
 		return;
 
-	ppc_send_ipi(l->l_md.md_veccpu->ci_index, PPC_IPI_FLUSH_VEC);
+	ppc_send_ipi(l->l_md.md_veccpu->ci_cpuid, PPC_IPI_FLUSH_VEC);
 
 	/* Wait for flush. */
 	for (u_int i = 0; i < 0x3fffffff; i++) {

Index: src/sys/arch/powerpc/powerpc/fpu.c
diff -u src/sys/arch/powerpc/powerpc/fpu.c:1.27 src/sys/arch/powerpc/powerpc/fpu.c:1.28
--- src/sys/arch/powerpc/powerpc/fpu.c:1.27	Sun Jan 23 17:36:09 2011
+++ src/sys/arch/powerpc/powerpc/fpu.c	Tue Feb  8 06:14:50 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpu.c,v 1.27 2011/01/23 17:36:09 matt Exp $	*/
+/*	$NetBSD: fpu.c,v 1.28 2011/02/08 06:14:50 matt Exp $	*/
 
 /*
  * Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.27 2011/01/23 17:36:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.28 2011/02/08 06:14:50 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -139,7 +139,7 @@
 	if (fpucpu == NULL)
 		return;
 
-	ppc_send_ipi(fpucpu->ci_index, PPC_IPI_FLUSH_FPU);
+	ppc_send_ipi(fpucpu->ci_cpuid, PPC_IPI_FLUSH_FPU);
 
 	/* Wait for flush. */
 	for (u_int i = 0; i < 0x3fffffff; i++) {

Reply via email to