Patrick Georgi | 0a3d4e0 | 2020-03-04 14:39:09 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Julius Werner | 5d6593a | 2018-08-10 16:13:26 -0700 | [diff] [blame] | 3 | |
| 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 | |
| 14 | void 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 | } |