summaryrefslogtreecommitdiff
path: root/src/arch/x86/post.c
blob: ec185c791e71bf3cd8fe03ef92cc50807d954ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#include <post.h>
#include <stdint.h>
#include <console/console.h>
#include <arch/io.h>

void arch_post_code(uint8_t value)
{
	if (CONFIG(POST_IO))
		outb(value, CONFIG_POST_IO_PORT);

	if (CONFIG(CMOS_POST) && !ENV_SMM)
		cmos_post_code(value);
}