security/vboot: relocate and rename vboot_platform_is_resuming()
After measured boot is decoupled from verified boot in CB:35077, vboot_platform_is_resuming() is never vboot-specific, thus it is renamed to platform_is_resuming() and declared in bootmode.h. Change-Id: I29b5b88af0576c34c10cfbd99659a5cdc0c75842 Signed-off-by: Bill XIE <persmule@hardenedlinux.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39103 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Philipp Deppenwiese
parent
bad08c2c29
commit
516c0a5338
@@ -15,6 +15,7 @@
|
||||
#include <stdint.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <arch/io.h>
|
||||
#include <bootmode.h>
|
||||
#include <device/device.h>
|
||||
#include <device/mmio.h>
|
||||
#include <device/pci.h>
|
||||
@@ -27,7 +28,6 @@
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/pmc.h>
|
||||
#include <security/vboot/vbnv.h>
|
||||
#include <security/vboot/vboot_common.h>
|
||||
|
||||
#if defined(__SIMPLE_DEVICE__)
|
||||
|
||||
@@ -387,7 +387,7 @@ int vbnv_cmos_failed(void)
|
||||
return rtc_failure();
|
||||
}
|
||||
|
||||
int vboot_platform_is_resuming(void)
|
||||
int platform_is_resuming(void)
|
||||
{
|
||||
if (!(inw(ACPI_BASE_ADDRESS + PM1_STS) & WAK_STS))
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user