blob: 3eede4ffc2ae150bd132709f3ca3d470695dde54 [file] [log] [blame]
Patrick Georgi0a3d4e02020-03-04 14:39:09 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Julius Werner5d6593a2018-08-10 16:13:26 -07003
4#include <arch/exception.h>
5#include <arch/stages.h>
6#include <cbmem.h>
7#include <console/console.h>
8#include <program_loading.h>
9#include <timestamp.h>
10
11__weak void platform_romstage_main(void) { /* no-op, for bring-up */ }
12__weak void platform_romstage_postram(void) { /* no-op */ }
13
14void main(void)
15{
16 timestamp_add_now(TS_START_ROMSTAGE);
17
18 console_init();
19 exception_init();
20
21 platform_romstage_main();
22 cbmem_initialize_empty();
23 platform_romstage_postram();
24
25 run_ramstage();
26}