Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Pass xname through Xen intr_establish_xname...
details: https://anonhg.NetBSD.org/src/rev/295ba2f84b07
branches: trunk
changeset: 357453:295ba2f84b07
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Nov 11 17:26:51 2017 +0000
description:
Pass xname through Xen intr_establish_xname to event_set_handler.
diffstat:
sys/arch/x86/x86/intr.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diffs (55 lines):
diff -r 0b9f72bf97dd -r 295ba2f84b07 sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c Sat Nov 11 17:02:53 2017 +0000
+++ b/sys/arch/x86/x86/intr.c Sat Nov 11 17:26:51 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.108 2017/11/11 07:52:41 riastradh Exp $ */
+/* $NetBSD: intr.c,v 1.109 2017/11/11 17:26:51 riastradh Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.108 2017/11/11 07:52:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.109 2017/11/11 17:26:51 riastradh Exp $");
#include "opt_intrdebug.h"
#include "opt_multiprocessor.h"
@@ -1209,24 +1209,24 @@
#else /* XEN */
void *
+intr_establish(int legacy_irq, struct pic *pic, int pin,
+ int type, int level, int (*handler)(void *) , void *arg,
+ bool known_mpsafe)
+{
+
+ return intr_establish_xname(legacy_irq, pic, pin, type, level,
+ handler, arg, known_mpsafe, "XEN");
+}
+
+void *
intr_establish_xname(int legacy_irq, struct pic *pic, int pin,
int type, int level, int (*handler)(void *) , void *arg,
bool known_mpsafe, const char *xname)
{
- /* XXX xname registration not supported */
- return intr_establish(legacy_irq, pic, pin, type, level, handler, arg,
- known_mpsafe);
-}
-
-void *
-intr_establish(int legacy_irq, struct pic *pic, int pin,
- int type, int level, int (*handler)(void *) , void *arg,
- bool known_mpsafe)
-{
if (pic->pic_type == PIC_XEN) {
struct intrhand *rih;
- event_set_handler(pin, handler,
- arg, level, "XEN");
+
+ event_set_handler(pin, handler, arg, level, xname);
rih = kmem_zalloc(sizeof(struct intrhand),
cold ? KM_NOSLEEP : KM_SLEEP);
Home |
Main Index |
Thread Index |
Old Index