zephyr/arch/x86/core/ia32
Daniel Leung ff720cd9b3 x86: enable soft float support for Zephyr SDK
This adds the correct compiler and linker flags to
support software floating point operations. The flags
need to be added to TOOLCHAIN_*_FLAGS for GCC to find
the correct library (when calling GCC with
--print-libgcc-file-name).

Note that software floating point needs to be turned
on for Newlib. This is due to Newlib having floating
point numbers in its various printf() functions which
results in floating point instructions being emitted
from toolchain. These instructions are placed very
early in the functions which results in them being
executed even though the format string contains
no floating point conversions. Without using CONFIG_FPU
to enable hardware floating point support, any calls to
printf() like functions will result in exceptions
complaining FPU is not available. Although forcing
CONFIG_FPU=y with newlib is an option, and because
the OS doesn't know which threads would call these
printf() functions, Zephyr has to assume all threads
are using FPU and thus incurring performance penalty as
every context switching now needs to save FPU registers.
A compromise here is to use soft float instead. Newlib
with soft float enabled does not have floating point
instructions and yet can still support its printf()
like functions.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2021-01-20 16:45:31 -05:00
..
cache.c x86: cache: Use new cache APIs 2021-01-19 14:31:02 -05:00
cache_s.S x86: cache: Use new cache APIs 2021-01-19 14:31:02 -05:00
coredump.c
crt0.S x86: power: Remove dead code 2021-01-08 06:49:43 -05:00
excstub.S
fatal.c x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
float.c
gdbstub.c
intstub.S power: remove SYS_ and sys_ prefixes 2020-12-09 15:18:29 -05:00
irq_manage.c
irq_offload.c
soft_float_stubs.c x86: enable soft float support for Zephyr SDK 2021-01-20 16:45:31 -05:00
swap.S tracing: roll thread switch in/out into thread stats functions 2020-11-11 23:55:49 -05:00
thread.c x86: remove custom switch to main thread function 2021-01-04 16:59:59 -08:00
tls.c
userspace.S x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00