Sam Price created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1547
Project:Branches: TheSamPrice/rtems:bsps-float-conversion to rtems/rtos/rtems:main Author: Sam Price ## Summary bsps/arm/smdk2410: Compute REFCNT in integer arithmetic The SDRAM refresh count was computed with the double constant 15.6, which made the ARM920T, which has no FPU, call soft-float double routines in early startup and warned under -Wfloat-conversion. Take HCLK in 10 kHz units so that 156 * HCLK stays within 32 bits. With the PLL settings of the BSP HCLK is 66.75 MHz, not the 66 MHz the comment stated. The result changes from 1007 to 1008. The refresh period is (2^11 + 1 - REFCNT) / HCLK, so 1008 gives 1041 cycles or 15.596 us, within the 15.6 us the comment asks for, where 1007 gave 15.610 us. Signed-off-by: Samuel Price <[email protected]> Assisted-by: Claude Opus 5.5 (1M context) <[email protected]> ## Generative AI <!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/--> <!-- Default settings, if it is a dropdown it will set after submission --> -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1547 You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-bevnxhdts7df7ykmbl7r6hokm-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
