diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/Makefile.inc | 1 | ||||
-rw-r--r-- | src/arch/x86/romstage.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc index eaced1f220..de2dc19c4e 100644 --- a/src/arch/x86/Makefile.inc +++ b/src/arch/x86/Makefile.inc @@ -159,6 +159,7 @@ endif # CONFIG_ARCH_VERSTAGE_X86_32 / CONFIG_ARCH_VERSTAGE_X86_64 ifeq ($(CONFIG_ARCH_ROMSTAGE_X86_32)$(CONFIG_ARCH_ROMSTAGE_X86_64),y) romstage-y += assembly_entry.S +romstage-y += romstage.c romstage-y += boot.c romstage-$(CONFIG_DEBUG_HW_BREAKPOINTS_IN_ALL_STAGES) += breakpoint.c romstage-y += post.c diff --git a/src/arch/x86/romstage.c b/src/arch/x86/romstage.c new file mode 100644 index 0000000000..a7ee4d99b4 --- /dev/null +++ b/src/arch/x86/romstage.c @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <arch/cpu.h> +#include <console/console.h> +#include <timestamp.h> +#include <romstage_common.h> + +asmlinkage void car_stage_entry(void) +{ + timestamp_add_now(TS_ROMSTAGE_START); + + /* Assumes the hardware was set up during the bootblock */ + console_init(); + + romstage_main(); +} |