diff --git a/arch/Kconfig b/arch/Kconfig index 168a6f475a1..0d884b691b3 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -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 diff --git a/boards/x86_64/qemu_x86_64/qemu_x86_64_defconfig b/boards/x86_64/qemu_x86_64/qemu_x86_64_defconfig index 19bf7d7ffb9..d1e5ffc770b 100644 --- a/boards/x86_64/qemu_x86_64/qemu_x86_64_defconfig +++ b/boards/x86_64/qemu_x86_64/qemu_x86_64_defconfig @@ -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 diff --git a/soc/x86_64/x86_64/linker.ld b/soc/x86_64/x86_64/linker.ld index 1d472b5d403..8d8cbd64f07 100644 --- a/soc/x86_64/x86_64/linker.ld +++ b/soc/x86_64/x86_64/linker.ld @@ -69,6 +69,7 @@ SECTIONS { *(.noinit*) } :ram + _end = .; /* We enable orphan section warnings, so these standard sections all * have to be called out explicitly