From: Kevin O'Connor Subject: Re: [SeaBIOS] [PATCH v3] add acpi pmtimer support Date: Wed, 5 Sep 2012 19:28:23 -0400 Message-ID: <20120905232823.GA11847@morn.localdomain> References: <1346822895-19196-1-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: seabios@seabios.org, kvm@vger.kernel.org To: Gerd Hoffmann Return-path: Received: from mail-vb0-f46.google.com ([209.85.212.46]:61702 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759890Ab2IEX20 (ORCPT ); Wed, 5 Sep 2012 19:28:26 -0400 Received: by vbbff1 with SMTP id ff1so770336vbb.19 for ; Wed, 05 Sep 2012 16:28:25 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1346822895-19196-1-git-send-email-kraxel@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Sep 05, 2012 at 07:28:15AM +0200, Gerd Hoffmann wrote: > This patch makes seabios use the acpi pmtimer instead of tsc for > timekeeping. The pmtimer has a fixed frequency and doesn't need > calibration, thus it doesn't suffer from calibration errors due to a > loaded host machine. > > [ v3: mask port ioport read ] [...] > +static u64 pmtimer_get(void) > +{ > + u16 ioport = GET_GLOBAL(pmtimer_ioport); > + u32 wraps = GET_LOW(pmtimer_wraps); > + u32 pmtimer = inl(ioport); Mask still missing? -Kevin