[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbios
Subject:    [OpenBIOS] r498 - cpu/x86
From:       svn () openbios ! org
Date:       2007-07-26 16:00:11
Message-ID: 200707261600.l6QG0JeC024798 () mailer ! progressive-comp ! com
[Download RAW message or body]

Author: wmb
Date: 2007-07-26 18:00:10 +0200 (Thu, 26 Jul 2007)
New Revision: 498

Modified:
   cpu/x86/tsc.fth
Log:
x86 t( .. )t - use us-factor instead of hardcoding clock speed.
Thanks to Luke Gorrie for the patch.


Modified: cpu/x86/tsc.fth
===================================================================
--- cpu/x86/tsc.fth	2007-07-26 06:42:10 UTC (rev 497)
+++ cpu/x86/tsc.fth	2007-07-26 16:00:10 UTC (rev 498)
@@ -42,7 +42,7 @@
 2variable timestamp
 : t(  ( -- )  tsc@ timestamp 2! ;
 : )t  ( -- )
-   tsc@  timestamp 2@  d-  d# 367 um/mod nip  ( microseconds )
+   tsc@  timestamp 2@  d-  us-factor um/mod nip  ( microseconds )
    push-decimal
    <#  u# u# u#  [char] , hold  u# u#s u#>  type  ."  uS "
    pop-base


-- 
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic