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

[Xen-devel] [PATCH] x86, hpet: check hpet existence

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] x86, hpet: check hpet existence
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Thu, 27 Nov 2008 14:34:36 +0800
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Wed, 26 Nov 2008 22:35:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclQWjdaubWA7QyQRcqoGtieTkeIRA==
Thread-topic: [PATCH] x86, hpet: check hpet existence
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@xxxxxxxxx>

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);

Attachment: check_hpet.patch
Description: check_hpet.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] x86, hpet: check hpet existence, Tian, Kevin <=