zephyr/cmake
Andy Ross b69d0da82d arch/x86_64: New architecture added
This patch adds a x86_64 architecture and qemu_x86_64 board to Zephyr.
Only the basic architecture support needed to run 64 bit code is
added; no drivers are added, though a low-level console exists and is
wired to printk().

The support is built on top of a "X86 underkernel" layer, which can be
built in isolation as a unit test on a Linux host.

Limitations:

+ Right now the SDK lacks an x86_64 toolchain.  The build will fall
  back to a host toolchain if it finds no cross compiler defined,
  which is tested to work on gcc 8.2.1 right now.

+ No x87/SSE/AVX usage is allowed.  This is a stronger limitation than
  other architectures where the instructions work from one thread even
  if the context switch code doesn't support it.  We are passing
  -no-sse to prevent gcc from automatically generating SSE
  instructions for non-floating-point purposes, which has the side
  effect of changing the ABI.  Future work to handle the FPU registers
  will need to be combined with an "application" ABI distinct from the
  kernel one (or just to require USERSPACE).

+ Paging is enabled (it has to be in long mode), but is a 1:1 mapping
  of all memory.  No MMU/USERSPACE support yet.

+ We are building with -mno-red-zone for stack size reasons, but this
  is a valuable optimization.  Enabling it requires automatic stack
  switching, which requires a TSS, which means it has to happen after
  MMU support.

+ The OS runs in 64 bit mode, but for compatibility reasons is
  compiled to the 32 bit "X32" ABI.  So while the full 64 bit
  registers and instruction set are available, C pointers are 32 bits
  long and Zephyr is constrained to run in the bottom 4G of memory.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-01-11 15:18:52 -05:00
..
app cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
backports cmake: Fixed python detection bug 2018-12-21 11:13:03 +01:00
compiler cmake/compiler/gcc: Fall back to host compiler for x86_64 2019-01-11 15:18:52 -05:00
emu arch/x86_64: New architecture added 2019-01-11 15:18:52 -05:00
flash cmake: flash: Conditional dependency to 'mergehex' 2018-12-05 12:14:38 -05:00
ide cmake: Eclipse CDT4 generator amendment 2018-10-17 18:16:55 -04:00
reports
toolchain cmake: Introduce host toolchain for POSIX arch 2019-01-10 14:56:32 -05:00
usage cmake: Whitespace and commentary fixes 2018-12-20 12:23:50 +01:00
util cmake: Whitespace and commentary fixes 2018-12-20 12:23:50 +01:00
ccache.cmake
cfb.cmake subsys: fb: add support for generating CFB font headers at build time 2018-11-28 11:46:00 +01:00
dts.cmake cmake: Whitespace and commentary fixes 2018-12-20 12:23:50 +01:00
extensions.cmake cmake: Whitespace and commentary fixes 2018-12-20 12:23:50 +01:00
extra_flags.cmake
fpu-for-gcc-m-cpu.cmake
gcc-m-cpu.cmake
generic_toolchain.cmake cmake: Introduce host toolchain for POSIX arch 2019-01-10 14:56:32 -05:00
git.cmake cmake: boilerplate: Move out finding git+python to separate cmake files 2018-12-27 19:24:51 -05:00
hex.cmake
host-tools-zephyr.cmake sdk: require Zephyr SDK 0.9.4 2018-11-05 11:00:38 -05:00
host-tools.cmake cmake: Whitespace and commentary fixes 2018-12-20 12:23:50 +01:00
kconfig.cmake cmake: Whitespace and commentary fixes 2018-12-20 12:23:50 +01:00
kobj.cmake
pristine.cmake
python.cmake cmake: boilerplate: Move out finding git+python to separate cmake files 2018-12-27 19:24:51 -05:00
target_toolchain.cmake cmake: Document CMAKE_SYSTEM_-variables, and add CMAKE_SYSTEM_VERSION 2018-12-20 11:15:20 +01:00
version.cmake cmake: version: Misc. refactorings for readability 2018-10-01 09:16:05 -04:00