mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
Back out SH-5 denorms fix (now in kernel)
This commit is contained in:
committed by
Richard P. Curnow
parent
5164a9e13c
commit
7e978e8b55
23
sys_linux.c
23
sys_linux.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user