Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/pic Add IPI_AST.



details:   https://anonhg.NetBSD.org/src/rev/b31e5bc1d560
branches:  trunk
changeset: 846616:b31e5bc1d560
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Nov 24 15:49:12 2019 +0000

description:
Add IPI_AST.

diffstat:

 sys/arch/powerpc/pic/ipi.c    |  7 +++++--
 sys/arch/powerpc/pic/ipivar.h |  5 +++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (54 lines):

diff -r f2bbf500d8b1 -r b31e5bc1d560 sys/arch/powerpc/pic/ipi.c
--- a/sys/arch/powerpc/pic/ipi.c        Sun Nov 24 15:40:24 2019 +0000
+++ b/sys/arch/powerpc/pic/ipi.c        Sun Nov 24 15:49:12 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipi.c,v 1.12 2015/01/23 07:27:05 nonaka Exp $ */
+/* $NetBSD: ipi.c,v 1.13 2019/11/24 15:49:12 ad Exp $ */
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipi.c,v 1.12 2015/01/23 07:27:05 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipi.c,v 1.13 2019/11/24 15:49:12 ad Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_pic.h"
@@ -78,6 +78,9 @@
        if (ipi & IPI_SUSPEND)
                cpu_pause(NULL);
 
+       if (ipi & IPI_AST)
+               ci->ci_data.cpu_onproc->l_md.md_astpending = 1;
+
        if (ipi & IPI_HALT) {
                struct cpuset_info * const csi = &cpuset_info;
                aprint_normal("halting CPU %d\n", cpu_id);
diff -r f2bbf500d8b1 -r b31e5bc1d560 sys/arch/powerpc/pic/ipivar.h
--- a/sys/arch/powerpc/pic/ipivar.h     Sun Nov 24 15:40:24 2019 +0000
+++ b/sys/arch/powerpc/pic/ipivar.h     Sun Nov 24 15:49:12 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipivar.h,v 1.9 2018/04/19 21:50:07 christos Exp $ */
+/* $NetBSD: ipivar.h,v 1.10 2019/11/24 15:49:12 ad Exp $ */
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipivar.h,v 1.9 2018/04/19 21:50:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipivar.h,v 1.10 2019/11/24 15:49:12 ad Exp $");
 
 #ifndef _IPI_VAR_H_
 #define _IPI_VAR_H_
@@ -56,6 +56,7 @@
 #define IPI_KPREEMPT           0x0004
 #define IPI_GENERIC            0x0008
 #define IPI_SUSPEND            0x0010
+#define        IPI_AST                 0x0020
 
 /* OpenPIC */
 void setup_openpic_ipi(void);



Home | Main Index | Thread Index | Old Index