Re: [RFC] High resolution time support using x86 TSC

2008-07-20 Thread Marco Gerards
Colin D Bennett <[EMAIL PROTECTED]> writes: > Hi Marco, > > On Thu, 03 Jul 2008 20:52:53 +0200 > Marco Gerards <[EMAIL PROTECTED]> wrote: > >> Hi Colin, >> >> Colin D Bennett <[EMAIL PROTECTED]> writes: >> >> > I have implemented high resolution time support (through the >> > new grub_get_time_m

Re: [RFC] High resolution time support using x86 TSC

2008-07-04 Thread Colin D Bennett
Hi Marco, On Thu, 03 Jul 2008 20:52:53 +0200 Marco Gerards <[EMAIL PROTECTED]> wrote: > Hi Colin, > > Colin D Bennett <[EMAIL PROTECTED]> writes: > > > I have implemented high resolution time support (through the > > new grub_get_time_ms() function) using the RDTSC instruction > > available on

Re: [RFC] High resolution time support using x86 TSC

2008-07-04 Thread Vesa Jääskeläinen
Colin D Bennett wrote: On Thu, 03 Jul 2008 20:52:53 +0200 Marco Gerards <[EMAIL PROTECTED]> wrote: Hi Colin, Colin D Bennett <[EMAIL PROTECTED]> writes: + * kern/i386/linuxbios/init.c (grub_get_time_ms): + Define grub_get_time_ms() to always return 0. This should be fixed +

Re: [RFC] High resolution time support using x86 TSC

2008-07-04 Thread Colin D Bennett
On Thu, 03 Jul 2008 20:52:53 +0200 Marco Gerards <[EMAIL PROTECTED]> wrote: > Hi Colin, > > Colin D Bennett <[EMAIL PROTECTED]> writes: > > > + * kern/i386/linuxbios/init.c (grub_get_time_ms): > > + Define grub_get_time_ms() to always return 0. This should > > be fixed > > + when RTC func

Re: [RFC] High resolution time support using x86 TSC

2008-07-03 Thread Marco Gerards
Hi Colin, Colin D Bennett <[EMAIL PROTECTED]> writes: > I have implemented high resolution time support (through the > new grub_get_time_ms() function) using the RDTSC instruction available > on Pentium and higher x86 CPUs. The TSC value is simply a 64-bit block > cycle counter that is zeroed at

[RFC] High resolution time support using x86 TSC

2008-06-23 Thread Colin D Bennett
I have implemented high resolution time support (through the new grub_get_time_ms() function) using the RDTSC instruction available on Pentium and higher x86 CPUs. The TSC value is simply a 64-bit block cycle counter that is zeroed at bootup, so grub_main() calls grub_time_init(), which is defined