xref: /aosp_15_r20/external/coreboot/src/include/cpu/x86/post_code.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __X86_POST_CODE_H__
4 #define __X86_POST_CODE_H__
5 
6 #include <commonlib/console/post_codes.h>
7 
8 #if CONFIG(POST_IO) && !(ENV_BOOTBLOCK && CONFIG(NO_EARLY_BOOTBLOCK_POSTCODES))
9 #define post_code(value)        \
10 	movb    $value, %al;    \
11 	outb    %al, $CONFIG_POST_IO_PORT
12 
13 #else
14 #define post_code(value)
15 #endif
16 
17 #endif /* __X86_POST_CODE_H__ */
18