diff options
-rw-r--r-- | src/console/post.c | 3 | ||||
-rw-r--r-- | src/include/console/console.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/console/post.c b/src/console/post.c index 1d99a2e9dd..35e87799a8 100644 --- a/src/console/post.c +++ b/src/console/post.c @@ -5,6 +5,7 @@ /* Write POST information */ void __weak arch_post_code(uint8_t value) { } +void __weak soc_post_code(uint8_t value) { } /* Some mainboards have very nice features beyond just a simple display. * They can override this function. @@ -18,6 +19,8 @@ void post_code(uint8_t value) for displaying POST so keep it first. */ arch_post_code(value); + soc_post_code(value); + if (CONFIG(CONSOLE_POST)) printk(BIOS_INFO, "POST: 0x%02x\n", value); diff --git a/src/include/console/console.h b/src/include/console/console.h index e4090af48b..49bce61470 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -16,6 +16,7 @@ void post_code(u8 value); void mainboard_post(u8 value); void arch_post_code(u8 value); +void soc_post_code(uint8_t value); void __noreturn die(const char *fmt, ...); #define die_with_post_code(value, fmt, ...) \ |