Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc add #if 0'ed implementation of xc_send_...



details:   https://anonhg.NetBSD.org/src/rev/e29c6b67b149
branches:  trunk
changeset: 755279:e29c6b67b149
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon May 31 03:16:47 2010 +0000

description:
add #if 0'ed implementation of xc_send_ipi(), to be used shortly.

diffstat:

 sys/arch/sparc/sparc/cpu.c |  27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diffs (55 lines):

diff -r b8a343f3efd6 -r e29c6b67b149 sys/arch/sparc/sparc/cpu.c
--- a/sys/arch/sparc/sparc/cpu.c        Sun May 30 22:22:18 2010 +0000
+++ b/sys/arch/sparc/sparc/cpu.c        Mon May 31 03:16:47 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.221 2010/01/23 16:06:57 mrg Exp $ */
+/*     $NetBSD: cpu.c,v 1.222 2010/05/31 03:16:47 mrg Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.221 2010/01/23 16:06:57 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.222 2010/05/31 03:16:47 mrg Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_lockdebug.h"
@@ -65,6 +65,9 @@
 #include <sys/malloc.h>
 #include <sys/simplelock.h>
 #include <sys/kernel.h>
+#if 0
+#include <sys/xcall.h>
+#endif
 
 #include <uvm/uvm.h>
 
@@ -637,6 +640,26 @@
        mutex_spin_exit(&xpmsg_mutex);
 }
 
+#if 0
+/*
+ * MI interface to call xc_ipi_handler() everywhere.
+ */
+void
+xc_send_ipi(struct cpu_info *target)
+{
+       u_int cpuset;
+
+       KASSERT(kpreempt_disabled());
+       KASSERT(curcpu() != target);
+
+       if (target)
+               cpuset = 1 << target->ci_cpuid;
+       else
+               cpuset = CPUSET_ALL & ~(1 << cpuinfo.ci_cpuid);
+       XCALL0(xc_ipi_handler, cpuset);
+}
+#endif
+
 /*
  * Tell all CPUs other than the current one to enter the PROM idle loop.
  */



Home | Main Index | Thread Index | Old Index