zephyr/arch/x86/core
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
..
ia32 x86: enable soft float support for Zephyr SDK 2021-01-20 16:45:31 -05:00
intel64 x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
offsets arch/x86: Use NMI stack for NMIs 2020-12-10 17:06:17 +02:00
CMakeLists.txt x86_64: add support for thread local storage 2020-10-24 10:52:00 -07:00
Kconfig.ia32 x86: enable soft float support for Zephyr SDK 2021-01-20 16:45:31 -05:00
Kconfig.intel64 x86: smp: add TLB shootdown logic 2020-11-05 09:33:40 -05:00
acpi.c mmu: rename z_mem_map to z_phys_map 2020-12-16 08:55:55 -05:00
common.S
cpuhalt.c
early_serial.c x86: early_serial: Suppress output attempts prior to init 2021-01-15 11:01:23 -05:00
fatal.c x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
ia32.cmake x86: enable soft float support for Zephyr SDK 2021-01-20 16:45:31 -05:00
intel64.cmake
memmap.c
multiboot.c arch/x86: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE 2020-12-20 10:19:30 -06:00
pcie.c arch/x86: Support PCIE MSI-X 2020-12-08 09:29:20 -05:00
prep_c.c
reboot_rst_cnt.c
spec_ctrl.c
tls.c x86_64: add support for thread local storage 2020-10-24 10:52:00 -07:00
userspace.c x86: add support for common page tables 2020-11-05 09:33:40 -05:00
x86_mmu.c x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00