xref: /aosp_15_r20/external/coreboot/src/arch/x86/post.c (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <arch/io.h>
4 #include <console/console.h>
5 #include <post.h>
6 #include <stdint.h>
7 
arch_post_code(uint8_t value)8 void arch_post_code(uint8_t value)
9 {
10 	if (CONFIG(POST_IO))
11 		outb(value, CONFIG_POST_IO_PORT);
12 
13 	if (CONFIG(CMOS_POST) && !ENV_SMM)
14 		cmos_post_code(value);
15 }
16