Skip to content
Commit f553fd13 authored by David Alessio's avatar David Alessio Committed by Gregory Nutt
Browse files

Recent enhancements to cmd_ps trips a floating point exception if...

Recent enhancements to cmd_ps trips a floating point exception if LIBC_FLOATINGPOINT is not defined (at least on Cortex M4 w/ hardfloat).  I’m using a buildroot gcc configured to support Cortex-M4F and the hard float ABI, target files are compiles with: -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard.  I’m not sure the best way to address this, but the attached patch file is the first that comes to mind.  Note, I added the float qualifier ‘F’ after a few constants to prevent the compiler from promoting the multiplication and division to double (expensive on M4F) then demoting to single float for the store.  (sorry, it’s one of my many pet peeves ;)
`
parent 8997e584
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment