tinygo/src
Ayke van Laethem f79e66ac2e cortexm: disable FPU on Cortex-M4
On some boards the FPU is already enabled on startup, probably as part
of the bootloader. On other chips it was enabled as part of the runtime
startup code. In all these cases, enabling the FPU is currently
unsupported: the automatic stack sizing of goroutines assumes that the
processor won't need to reserve space for FPU registers. Enabling the
FPU therefore can lead to a stack overflow.

This commit either removes the code that enables the FPU, or simply
disables it in startup code. A future change should fully enable the FPU
so that operations on float32 can be performed by the FPU instead of in
software, greatly speeding up such code.
2021-04-24 18:41:40 +02:00
..
device cortexm: disable FPU on Cortex-M4 2021-04-24 18:41:40 +02:00
examples PWM Support for atmega1280 2021-04-16 17:47:31 +02:00
internal compiler: merge runtime.typecodeID and runtime.typeInInterface 2021-03-23 14:32:33 +01:00
machine machine/usbcdc: remove remaining heap allocations for USB CDC implementations 2021-04-23 23:37:24 +02:00
os WASI & darwin: support basic file io based on libc 2021-03-28 12:37:15 +02:00
reflect reflect: implement New function 2021-04-12 14:49:26 +02:00
runtime cortexm: disable FPU on Cortex-M4 2021-04-24 18:41:40 +02:00
sync extend stdlib to allow import of more packages (#1099) 2020-06-23 11:56:28 +02:00
syscall WASI & darwin: support basic file io based on libc 2021-03-28 12:37:15 +02:00
testing testing: add Run method 2020-10-28 18:25:56 +01:00