coreboot-kgpe-d16/src/arch/x86/post.c
Kyösti Mälkki ce39ba97bc drivers/pc80/rtc: Reorganize prototypes
Change-Id: Idea18f437c31ebe83dd61a185e614106a1f8f976
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38199
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
2020-04-20 06:16:54 +00:00

16 lines
342 B
C

/* 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);
}