ia64/xen-unstable
changeset 17585:a95c2e36d6fd
x86 hvm: Support interrupt delivery for PIT channel 0 when in modes 3 and 4.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue May 06 16:20:24 2008 +0100 (2008-05-06) |
parents | ab2d9e75098d |
children | cc953475ab14 |
files | xen/arch/x86/hvm/i8254.c |
line diff
1.1 --- a/xen/arch/x86/hvm/i8254.c Tue May 06 15:31:15 2008 +0100 1.2 +++ b/xen/arch/x86/hvm/i8254.c Tue May 06 16:20:24 2008 +0100 1.3 @@ -206,19 +206,21 @@ static void pit_load_count(PITState *pit 1.4 1.5 switch ( s->mode ) 1.6 { 1.7 - case 2: 1.8 - /* Periodic timer. */ 1.9 - create_periodic_time(v, &pit->pt0, period, 0, 0, pit_time_fired, 1.10 - &pit->count_load_time[channel]); 1.11 - break; 1.12 - case 1: 1.13 - /* One-shot timer. */ 1.14 - create_periodic_time(v, &pit->pt0, period, 0, 1, pit_time_fired, 1.15 - &pit->count_load_time[channel]); 1.16 - break; 1.17 - default: 1.18 - destroy_periodic_time(&pit->pt0); 1.19 - break; 1.20 + case 2: 1.21 + case 3: 1.22 + /* Periodic timer. */ 1.23 + create_periodic_time(v, &pit->pt0, period, 0, 0, pit_time_fired, 1.24 + &pit->count_load_time[channel]); 1.25 + break; 1.26 + case 1: 1.27 + case 4: 1.28 + /* One-shot timer. */ 1.29 + create_periodic_time(v, &pit->pt0, period, 0, 1, pit_time_fired, 1.30 + &pit->count_load_time[channel]); 1.31 + break; 1.32 + default: 1.33 + destroy_periodic_time(&pit->pt0); 1.34 + break; 1.35 } 1.36 } 1.37