direct-io.hg

changeset 11586:08a582a98471

[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@cam.ac.uk>
author Steven Smith <ssmith@xensource.com>
date Fri Sep 22 17:21:52 2006 +0100 (2006-09-22)
parents 140dff9d90dc
children cdd03c7ec8d3
files xen/arch/x86/hvm/i8259.c
line diff
     1.1 --- a/xen/arch/x86/hvm/i8259.c	Fri Sep 22 09:12:00 2006 +0100
     1.2 +++ b/xen/arch/x86/hvm/i8259.c	Fri Sep 22 17:21:52 2006 +0100
     1.3 @@ -271,7 +271,10 @@ static void pic_reset(void *opaque)
     1.4      s->rotate_on_auto_eoi = 0;
     1.5      s->special_fully_nested_mode = 0;
     1.6      s->init4 = 0;
     1.7 -    s->elcr = 0;
     1.8 +
     1.9 +    /* Initialise to level triggered mode, since Linux assumes that in
    1.10 +       a few places and it doesn't appear to break anything. */
    1.11 +    s->elcr = 0xff & s->elcr_mask;
    1.12  }
    1.13  
    1.14  /* Caller must hold vpic lock */