Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen Provide XEN stubs for intr_mask() / intr_unmask().



details:   https://anonhg.NetBSD.org/src/rev/a1dcb25ccaec
branches:  trunk
changeset: 967813:a1dcb25ccaec
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Dec 23 13:35:37 2019 +0000

description:
Provide XEN stubs for intr_mask() / intr_unmask().

diffstat:

 sys/arch/xen/include/intr.h |   4 +++-
 sys/arch/xen/x86/xen_intr.c |  26 ++++++++++++++++++++++++--
 2 files changed, 27 insertions(+), 3 deletions(-)

diffs (72 lines):

diff -r de0f4d568a24 -r a1dcb25ccaec sys/arch/xen/include/intr.h
--- a/sys/arch/xen/include/intr.h       Mon Dec 23 09:36:17 2019 +0000
+++ b/sys/arch/xen/include/intr.h       Mon Dec 23 13:35:37 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.52 2019/02/02 12:32:55 cherry Exp $ */
+/*     $NetBSD: intr.h,v 1.53 2019/12/23 13:35:37 thorpej Exp $        */
 /*     NetBSD intr.h,v 1.15 2004/10/31 10:39:34 yamt Exp       */
 
 /*-
@@ -91,6 +91,8 @@
     void *, bool, const char *);
 void *xen_intr_establish(int, struct pic *, int, int, int, int (*)(void *),
     void *, bool);
+void xen_intr_mask(struct intrhand *);
+void xen_intr_unmask(struct intrhand *);
 void xen_intr_disestablish(struct intrhand *);
 
 #endif /* !_LOCORE */
diff -r de0f4d568a24 -r a1dcb25ccaec sys/arch/xen/x86/xen_intr.c
--- a/sys/arch/xen/x86/xen_intr.c       Mon Dec 23 09:36:17 2019 +0000
+++ b/sys/arch/xen/x86/xen_intr.c       Mon Dec 23 13:35:37 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xen_intr.c,v 1.17 2019/06/07 12:43:52 cherry Exp $     */
+/*     $NetBSD: xen_intr.c,v 1.18 2019/12/23 13:35:37 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_intr.c,v 1.17 2019/06/07 12:43:52 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_intr.c,v 1.18 2019/12/23 13:35:37 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -241,6 +241,26 @@
 }
 
 /*
+ * Mask an interrupt source.
+ */
+void
+xen_intr_mask(struct intrhand *ih)
+{
+       /* XXX */
+       panic("xen_intr_mask: not yet implemented.");
+}
+
+/*
+ * Unmask an interrupt source.
+ */
+void
+xen_intr_unmask(struct intrhand *ih)
+{
+       /* XXX */
+       panic("xen_intr_unmask: not yet implemented.");
+}
+
+/*
  * Deregister an interrupt handler.
  */
 void
@@ -510,6 +530,8 @@
 __strong_alias(intr_create_intrid, xen_intr_create_intrid);
 __strong_alias(intr_establish, xen_intr_establish);
 __strong_alias(intr_establish_xname, xen_intr_establish_xname);
+__strong_alias(intr_mask, xen_intr_mask);
+__strong_alias(intr_unmask, xen_intr_unmask);
 __strong_alias(intr_disestablish, xen_intr_disestablish);
 __strong_alias(cpu_intr_redistribute, xen_cpu_intr_redistribute);
 __strong_alias(cpu_intr_count, xen_cpu_intr_count);



Home | Main Index | Thread Index | Old Index