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

[Xen-changelog] [xen-unstable] [XEN][HVM] Initialise the ELCR so that all interrupts are in level triggered



# HG changeset patch
# User Steven Smith <ssmith@xxxxxxxxxxxxx>
# Node ID 08a582a98471da30fb86bca620495f3d91d55800
# Parent  140dff9d90dca30cb8f8e258e8976ce2dafb73e2
[XEN][HVM] Initialise the ELCR so that all interrupts are in level triggered
mode after pic_reset, since that seems to be what Linux expects.

Signed-off-by: Steven Smith <sos22@xxxxxxxxx>
---
 xen/arch/x86/hvm/i8259.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r 140dff9d90dc -r 08a582a98471 xen/arch/x86/hvm/i8259.c
--- a/xen/arch/x86/hvm/i8259.c  Fri Sep 22 09:12:00 2006 +0100
+++ b/xen/arch/x86/hvm/i8259.c  Fri Sep 22 17:21:52 2006 +0100
@@ -271,7 +271,10 @@ static void pic_reset(void *opaque)
     s->rotate_on_auto_eoi = 0;
     s->special_fully_nested_mode = 0;
     s->init4 = 0;
-    s->elcr = 0;
+
+    /* Initialise to level triggered mode, since Linux assumes that in
+       a few places and it doesn't appear to break anything. */
+    s->elcr = 0xff & s->elcr_mask;
 }
 
 /* Caller must hold vpic lock */

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.