Add check on hpet existence which is removed accidentally
in previous changeset (18790). Or else BAD PERIOD error can be seen.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
diff -r ab0c1bdede53 xen/arch/x86/hpet.c
--- a/xen/arch/x86/hpet.c Wed Nov 26 11:14:26 2008 +0000
+++ b/xen/arch/x86/hpet.c Wed Nov 26 19:22:03 2008 -0500
@@ -273,6 +273,8 @@
return hpet_rate;
system_reset_latch = system_reset_counter;
+ if ( !hpet_address )
+ return 0;
set_fixmap_nocache(FIX_HPET_BASE, hpet_address);
hpet_id = hpet_read32(HPET_ID);
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel