Re: Higher resolution timers

2008-05-28 Thread Robert Millan
On Sat, May 24, 2008 at 11:23:14AM +0200, Marco Gerards wrote: > > Of course I will adhere to the GRUB coding style. The snippet I posted > > was just basically just quick pseudocode (not actually compiled) based > > on 10 minutes of thought. I did not take time to format the code style > > but s

Re: Higher resolution timers

2008-05-24 Thread Vesa Jääskeläinen
Marco Gerards wrote: Hi Colin, Colin D Bennett <[EMAIL PROTECTED]> writes: What would be the best way to do this? Possibilities that I am aware of are: * RDTSC instruction (must calibrate with RTC at startup?) * HPET (complex to use?) * RTC (can we set the timer interrupt rate to >18 Hz?)

Re: Higher resolution timers

2008-05-24 Thread Marco Gerards
Colin D Bennett <[EMAIL PROTECTED]> writes: > On Fri, 23 May 2008 13:55:21 +0200 > Marco Gerards <[EMAIL PROTECTED]> wrote: > >> Colin D Bennett <[EMAIL PROTECTED]> writes: >> >> > On Mon, 12 May 2008 09:33:54 -0700 >> > Colin D Bennett <[EMAIL PROTECTED]> wrote: >> > >> >> I think that using the

Re: Higher resolution timers

2008-05-23 Thread Colin D Bennett
On Fri, 23 May 2008 13:55:21 +0200 Marco Gerards <[EMAIL PROTECTED]> wrote: > Colin D Bennett <[EMAIL PROTECTED]> writes: > > > On Mon, 12 May 2008 09:33:54 -0700 > > Colin D Bennett <[EMAIL PROTECTED]> wrote: > > > >> I think that using the TSC (w/ RDTSC instruction) and calibrating > >> it with

Re: Higher resolution timers

2008-05-23 Thread Marco Gerards
Colin D Bennett <[EMAIL PROTECTED]> writes: > On Mon, 12 May 2008 09:33:54 -0700 > Colin D Bennett <[EMAIL PROTECTED]> wrote: > >> I think that using the TSC (w/ RDTSC instruction) and calibrating it >> with a quick 2-3 RTC tick loop at startup might be the easiest option. > > Just wondered if som

Re: Higher resolution timers

2008-05-23 Thread Marco Gerards
Hi Colin, Colin D Bennett <[EMAIL PROTECTED]> writes: > To implement a nice GUI with some animations, it will be important to > have a timer with a better resolution than 1/18 second (which appears > to be the current GRUB timer resolution on the PC). Such patch will me more than welcome. We ac

Re: Higher resolution timers

2008-05-20 Thread Colin D Bennett
On Mon, 12 May 2008 09:33:54 -0700 Colin D Bennett <[EMAIL PROTECTED]> wrote: > I think that using the TSC (w/ RDTSC instruction) and calibrating it > with a quick 2-3 RTC tick loop at startup might be the easiest option. Just wondered if something like this would be a practical way to go: /

Re: Higher resolution timers

2008-05-20 Thread Colin D Bennett
On Sun, 18 May 2008 19:27:05 +0300 Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > Colin D Bennett wrote: > > I think that using the TSC (w/ RDTSC instruction) and calibrating it > > with a quick 2-3 RTC tick loop at startup might be the easiest > > option. > > Hi Colin, > > What kind of accuracy

Re: Higher resolution timers

2008-05-18 Thread Vesa Jääskeläinen
Colin D Bennett wrote: To implement a nice GUI with some animations, it will be important to have a timer with a better resolution than 1/18 second (which appears to be the current GRUB timer resolution on the PC). What would be the best way to do this? Possibilities that I am aware of are: *

Re: Higher resolution timers

2008-05-14 Thread Vesa Jääskeläinen
Hi All, Colin D Bennett wrote: To implement a nice GUI with some animations, it will be important to have a timer with a better resolution than 1/18 second (which appears to be the current GRUB timer resolution on the PC). What would be the best way to do this? Possibilities that I am aware of