Angel Pons | f23ae0b | 2020-04-02 23:48:12 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 2 | |
| 3 | #include <bootblock_common.h> |
| 4 | #include <console/console.h> |
| 5 | #include <cpu/x86/bist.h> |
| 6 | |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 7 | asmlinkage void bootblock_c_entry_bist(uint64_t base_timestamp, uint32_t bist) |
| 8 | { |
| 9 | post_code(0x05); |
| 10 | |
| 11 | /* Halt if there was a built in self test failure */ |
| 12 | if (bist) { |
| 13 | console_init(); |
| 14 | report_bist_failure(bist); |
| 15 | } |
| 16 | |
| 17 | /* Call lib/bootblock.c main */ |
Kyösti Mälkki | 101ef0b | 2019-08-18 06:58:42 +0300 | [diff] [blame] | 18 | bootblock_main_with_basetime(base_timestamp); |
Patrick Rudolph | 1af8923 | 2018-11-11 12:50:51 +0100 | [diff] [blame] | 19 | } |