Skip to content
Permalink
Browse files

x86_64: minimally preparing for enabling newlib

The libc hooks for Newlib requires CONFIG_SRAM_SIZE and
the symbol "_end" at the end of memory. This is in preparation
for enabling Newlib for x86_64.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
  • Loading branch information...
dcpleung authored and nashif committed May 7, 2019
1 parent 4ae1f29 commit 06a3735754ddacb3385973daf01b0cb2c17af74b
Showing with 5 additions and 2 deletions.
  1. +2 −2 arch/Kconfig
  2. +2 −0 boards/x86_64/qemu_x86_64/qemu_x86_64_defconfig
  3. +1 −0 soc/x86_64/x86_64/linker.ld
@@ -92,7 +92,7 @@ config 64BIT
soc/**/Kconfig, or boards/**/Kconfig and the user should generally
avoid modifying it.

if ARC || ARM || NIOS2 || X86
if ARC || ARM || NIOS2 || X86 || X86_64

config SRAM_SIZE
int "SRAM Size in kB"
@@ -126,7 +126,7 @@ config FLASH_BASE_ADDRESS
normally set by the board's defconfig file and the user should generally
avoid modifying it via the menu configuration.

endif # ARM || ARC || NIOS2 || X86
endif # ARM || ARC || NIOS2 || X86 || X86_64

if ARCH_HAS_TRUSTED_EXECUTION

@@ -12,3 +12,5 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000000
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=1024
CONFIG_TEST_EXTRA_STACKSIZE=2048
CONFIG_SRAM_BASE_ADDRESS=0x100000
CONFIG_SRAM_SIZE=8192
@@ -69,6 +69,7 @@ SECTIONS {
*(.noinit*)
} :ram

_end = .;

/* We enable orphan section warnings, so these standard sections all
* have to be called out explicitly

0 comments on commit 06a3735

Please sign in to comment.
You can’t perform that action at this time.