diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/Kconfig | 9 | ||||
-rw-r--r-- | src/arch/x86/Makefile.inc | 2 | ||||
-rw-r--r-- | src/arch/x86/include/arch/ebda.h | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig index 726fa31f71..c1390de145 100644 --- a/src/arch/x86/Kconfig +++ b/src/arch/x86/Kconfig @@ -135,6 +135,15 @@ config PRERAM_CBMEM_CONSOLE_SIZE help Increase this value if preram cbmem console is getting truncated +config EARLY_EBDA_INIT + bool + default n + help + Initialize BIOS EBDA area early in romstage to allow bootloader to + use this region for storing data which can be available across + various stages. If user is selecting this option then its users + responsibility to perform EBDA initialization call during romstage. + config PC80_SYSTEM bool default y if ARCH_X86 diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc index 813e01b181..cc227b3bf0 100644 --- a/src/arch/x86/Makefile.inc +++ b/src/arch/x86/Makefile.inc @@ -209,6 +209,7 @@ romstage-y += boot.c romstage-y += cbmem.c romstage-y += cbfs_and_run.c romstage-$(CONFIG_ARCH_RAMSTAGE_X86_32) += cpu_common.c +romstage-$(CONFIG_EARLY_EBDA_INIT) += ebda.c romstage-y += memcpy.c romstage-y += memmove.c romstage-y += memset.c @@ -283,6 +284,7 @@ postcar-y += boot.c postcar-y += cbfs_and_run.c postcar-y += cbmem.c postcar-y += cpu_common.c +postcar-$(CONFIG_EARLY_EBDA_INIT) += ebda.c postcar-y += exit_car.S postcar-y += memcpy.c postcar-y += memmove.c diff --git a/src/arch/x86/include/arch/ebda.h b/src/arch/x86/include/arch/ebda.h index cd25ccaba1..428bc92c27 100644 --- a/src/arch/x86/include/arch/ebda.h +++ b/src/arch/x86/include/arch/ebda.h @@ -17,6 +17,9 @@ #ifndef __ARCH_EBDA_H #define __ARCH_EBDA_H +#include <stdint.h> +#include <stddef.h> + #define X86_BDA_SIZE 0x200 #define X86_BDA_BASE ((void *)0x400) #define X86_EBDA_SEGMENT ((void *)0x40e) |