diff options
author | Amaan Cheval <amaan.cheval@gmail.com> | 2018-07-09 16:42:56 +0530 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-07-11 15:22:44 -0500 |
commit | 76c03152e110dcb770253b54277811228e8f78df (patch) | |
tree | 961fe157e59b137d932c4feb7d275b6157f99da0 /bsps/x86_64/amd64/config/amd64.cfg | |
parent | bsp/riscv: Add console support for NS16550 devices (diff) | |
download | rtems-76c03152e110dcb770253b54277811228e8f78df.tar.bz2 |
bsp/x86_64: Minimal bootable BSP
Current state:
- Basic context initialization and switching code.
- Stubbed console (empty functions).
- Mostly functional linker script (may need tweaks if we ever want to move
away from the large code model (see: CPU_CFLAGS).
- Fully functional boot, by using FreeBSD's bootloader to load RTEMS's ELF for
UEFI-awareness.
In short, the current state with this commit lets us boot, go through the system
initialization functions, and then call user application's Init task too.
Updates #2898.
Diffstat (limited to 'bsps/x86_64/amd64/config/amd64.cfg')
-rw-r--r-- | bsps/x86_64/amd64/config/amd64.cfg | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bsps/x86_64/amd64/config/amd64.cfg b/bsps/x86_64/amd64/config/amd64.cfg new file mode 100644 index 0000000000..3c4492d9d3 --- /dev/null +++ b/bsps/x86_64/amd64/config/amd64.cfg @@ -0,0 +1,13 @@ +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU = x86_64 + +CFLAGS_OPTIMIZE_V += -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +# We can't have the red zone because interrupts will not respect that area. +CPU_CFLAGS = -mno-red-zone +# This flag tells GCC to not assume values will fit in 32-bit registers. This +# way we can avoid linker-time relocation errors spawning from values being +# larger than their optimized container sizes. +CPU_CFLAGS += -mcmodel=large |