]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Back out SH-5 denorms fix (now in kernel)
authorrichard <richard>
Thu, 17 Jul 2003 21:23:09 +0000 (21:23 +0000)
committerRichard P. Curnow <rc@rc0.org.uk>
Thu, 19 Jan 2006 21:37:12 +0000 (21:37 +0000)
sys_linux.c

index 2cb02b8888af699b0fe6055810c65ce185d2fcc9..ff43d97eee4afe17f0c6acfa57ccce0bcea0bfc4 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  $Header: /cvs/src/chrony/sys_linux.c,v 1.42 2003/07/17 21:22:23 richard Exp $
+  $Header: /cvs/src/chrony/sys_linux.c,v 1.43 2003/07/17 21:23:09 richard Exp $
 
   =======================================================================
 
@@ -785,23 +785,6 @@ get_version_specific_details(void)
 
 }
 
-/* ================================================== */
-/* Set denorms to flush to zero instead of trapping. */
-
-#if defined(__SH5__)
-static void enable_flush_denorms(void)
-{
-  float fpscr;
-  unsigned long ifpscr;
-  asm volatile("fgetscr %0" : "=f" (fpscr));
-  asm volatile("fmov.sl %1, %0" : "=r" (ifpscr) : "f" (fpscr));
-  ifpscr |= 0x40000;
-  asm volatile("fmov.ls %1, %0" : "=f" (fpscr) : "r" (ifpscr));
-  asm volatile("fputscr %0" : : "f" (fpscr));
-  return;
-}
-#endif
-
 /* ================================================== */
 /* Initialisation code for this module */
 
@@ -811,10 +794,6 @@ SYS_Linux_Initialise(void)
   offset_register = 0.0;
   fast_slewing = 0;
 
-#if defined(__SH5__)
-  enable_flush_denorms();
-#endif
-
   get_version_specific_details();
 
   current_tick = nominal_tick;