[OpenBIOS] r498 - cpu/x86

svn at openbios.org svn at openbios.org
Thu Jul 26 18:00:11 CEST 2007


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




More information about the OpenBIOS mailing list