aliguori 3787324101 hpet: Fix emulation of HPET_TN_SETVAL (Jan Kiszka)
While Intel's spec is not that clear here, latest changes to Linux' HPET
code (commit c23e253e67c9d8a91a0ffa33c1f571a17f0a2403, "x86: hpet: stop
HPET_COUNTER when programming periodic mode") strongly suggest that
HPET_TN_SETVAL rather means: Set _both_ the comparator value and
register.

With this patch applied, I'm again able to boot 2.6.30-rc kernels as
they no longer panic like this (which was due to the comparator
register remaining 0):

ENABLING IO-APIC IRQs
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
..MP-BIOS bug: 8254 timer not connected to IO-APIC
...trying to set up timer (IRQ0) through the 8259A ...
..... (found apic 0 pin 2) ...
....... failed.
...trying to set up timer as Virtual Wire IRQ...
..... failed.
...trying to set up timer as ExtINT IRQ...
..... failed :(.
Kernel panic - not syncing: IO-APIC + timer doesn't work! [...]

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7168 c046a42c-6fe2-441c-8c8c-71466251a162
2009-04-17 20:50:58 +00:00
..
2008-12-30 19:01:19 +00:00
2009-04-08 22:56:26 +00:00
2009-04-09 17:30:32 +00:00
2009-03-05 23:01:23 +00:00
2009-04-09 17:15:18 +00:00
2009-04-10 00:26:15 +00:00
2008-06-13 10:48:22 +00:00
2009-02-06 00:49:42 +00:00
2008-04-08 06:01:02 +00:00
2009-03-10 21:43:35 +00:00
2008-12-13 09:32:43 +00:00
2009-01-18 12:16:26 +00:00
2009-04-10 00:26:15 +00:00
2008-04-11 04:55:07 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2009-01-14 14:47:56 +00:00
2009-03-05 23:01:23 +00:00
2008-03-21 18:05:23 +00:00
2009-03-28 16:17:50 +00:00
2009-02-06 00:15:19 +00:00
2004-11-07 18:04:02 +00:00
2009-04-10 02:24:36 +00:00
2009-01-16 21:38:58 +00:00
2009-04-17 17:10:59 +00:00
2007-11-17 17:14:51 +00:00
2008-10-31 17:25:56 +00:00
2009-03-04 07:20:40 +00:00
2009-02-07 10:48:26 +00:00
2009-04-10 02:19:52 +00:00
2008-12-13 09:32:43 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2009-04-15 14:57:54 +00:00
2009-01-20 04:15:47 +00:00
2009-03-07 21:48:00 +00:00
2009-04-10 14:29:45 +00:00
2009-04-10 14:29:45 +00:00
2009-04-10 02:24:36 +00:00
2009-01-08 18:52:52 +00:00
2009-03-13 16:27:31 +00:00
2009-04-10 02:24:36 +00:00
2009-03-05 23:01:23 +00:00
2008-12-03 22:48:44 +00:00
2008-12-13 09:32:43 +00:00
2008-12-13 09:32:43 +00:00
2008-12-13 09:32:43 +00:00
2008-12-13 09:32:43 +00:00
2008-12-13 09:32:43 +00:00
2009-04-11 17:41:32 +00:00
2009-04-10 14:29:45 +00:00
2009-04-10 14:29:45 +00:00
2008-12-13 09:32:43 +00:00
2009-03-31 17:18:10 +00:00
2009-04-11 17:01:42 +00:00
2009-04-10 21:26:55 +00:00
2008-04-14 21:05:22 +00:00
2009-02-07 15:18:47 +00:00
2009-04-09 17:48:30 +00:00
2009-04-10 00:26:15 +00:00
2008-12-13 09:32:43 +00:00
2009-04-10 14:29:45 +00:00
2007-11-17 17:14:51 +00:00
2008-12-13 09:32:43 +00:00
2009-04-10 00:26:15 +00:00
2009-04-11 16:55:44 +00:00
2009-03-07 20:53:18 +00:00
2009-03-05 23:01:23 +00:00
2009-04-09 17:15:18 +00:00
2009-04-17 14:26:41 +00:00
2008-12-04 20:33:06 +00:00
2009-04-10 02:24:36 +00:00
2009-04-09 17:48:30 +00:00