Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen xenevt_setipending(): also increase xenevt_...



details:   https://anonhg.NetBSD.org/src/rev/acaab966516e
branches:  trunk
changeset: 366447:acaab966516e
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Fri May 27 18:35:38 2022 +0000

description:
xenevt_setipending(): also increase xenevt_ih->ih_pending, so that
the handler will be called when the IPL is lowered.

diffstat:

 sys/arch/xen/xen/xenevt.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ecfda875cd95 -r acaab966516e sys/arch/xen/xen/xenevt.c
--- a/sys/arch/xen/xen/xenevt.c Fri May 27 17:04:16 2022 +0000
+++ b/sys/arch/xen/xen/xenevt.c Fri May 27 18:35:38 2022 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xenevt.c,v 1.64 2021/07/24 21:31:36 andvar Exp $      */
+/*      $NetBSD: xenevt.c,v 1.65 2022/05/27 18:35:38 bouyer Exp $      */
 
 /*
  * Copyright (c) 2005 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.64 2021/07/24 21:31:36 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.65 2022/05/27 18:35:38 bouyer Exp $");
 
 #include "opt_xen.h"
 #include <sys/param.h>
@@ -211,6 +211,7 @@
        atomic_or_ulong(&xenevt_ev1, 1UL << l1);
        atomic_or_ulong(&xenevt_ev2[l1], 1UL << l2);
        atomic_or_32(&xenevt_ih->ih_cpu->ci_ipending, 1 << SIR_XENIPL_HIGH);
+       atomic_add_int(&xenevt_ih->ih_pending, 1);
        evtsource[xenevt_ev]->ev_evcnt.ev_count++;
 }
 



Home | Main Index | Thread Index | Old Index