WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [pushed][ppc] process all interrupts that may be in the PIC

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed][ppc] process all interrupts that may be in the PIC
From: jimix@xxxxxxxxxxxxxx
Date: Wed, 29 Mar 2006 12:34:49 -0500
Delivery-date: Wed, 29 Mar 2006 17:34:21 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
changeset:   9665:adf9242cac67
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Wed Mar 29 12:31:15 2006 -0500
summary:     [ppc] process all interrupts that may be in the PIC

diff -r 7c52c6507ea3 -r adf9242cac67 xen/arch/ppc/external.c
--- a/xen/arch/ppc/external.c   Wed Mar 29 12:28:58 2006 -0500
+++ b/xen/arch/ppc/external.c   Wed Mar 29 12:31:15 2006 -0500
@@ -75,13 +75,22 @@ void do_external(struct cpu_user_regs *r
 {
     int vec;
 
-    local_irq_disable();
-    vec = mpic_get_one_irq(mpic, regs);
-
-    DBG("EE:0x%lx isrc: %d\n", regs->msr, vec);
-    if (vec != -1) {
-        regs->entry_vector = vec;
-        do_IRQ(regs);
+    BUG_ON(!(regs->msr & MSR_EE));
+    BUG_ON(mfmsr() & MSR_EE);
+
+    for (;;) {
+        vec = mpic_get_one_irq(mpic, regs);
+
+        if (vec != -1) {
+            DBG("EE:0x%lx isrc: %d\n", regs->msr, vec);
+            regs->entry_vector = vec;
+            do_IRQ(regs);
+
+            BUG_ON(mfmsr() & MSR_EE);
+
+            continue;
+        }
+        break;
     }
 }
 



_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>