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-changelog

[Xen-changelog] [xen-unstable] [XEN][HVM] Initialise the ELCR so that al

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEN][HVM] Initialise the ELCR so that all interrupts are in level triggered
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 23 Sep 2006 13:00:16 +0000
Delivery-date: Sat, 23 Sep 2006 06:00:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEN][HVM] Initialise the ELCR so that all interrupts are in level triggered, Xen patchbot-unstable <=