lkml.org 
[lkml]   [2008]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mmap over HPET - 32 bit wrap arround
On Wed, May 28, 2008 at 6:19 PM, Raz <raziebe@gmail.com> wrote:
> I am wondering wether someone can explain how hpet behaves. The bellow
> is a short program that reads from a mmaped /dev/hpet the time. I am
> running it and it looks that afer ~296 seconds the counter resets . I
> AM RUNNING 64bi KERNEL(2.6.18-8.el5) and reading a 64BIT VARIABLE.
> my hpet is 14MHZ, so I am guessing a 32bit wraparound ( ~296 * 14Mhz
> ) = MAX_INT . but why ?
>

HPET counter can be either 32 or 64 bit. Check COUNT_SIZE_CAP.

http://www.intel.com/hardwaredesign/hpetspec_1.pdf

Lee


\
 
 \ /
  Last update: 2008-05-29 01:59    [W:0.039 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site