Files
acrn-hypervisor/hypervisor/arch/x86/pm.c
lijinxia a3b65ad0db Revert "hv: add enter_s3"
This reverts commit 52c17408be.
2018-06-27 14:20:24 +08:00

17 lines
304 B
C

/*
* Copyright (C) <2018> Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <hypervisor.h>
struct run_context cpu_ctx;
void restore_msrs(void)
{
#ifdef STACK_PROTECTOR
struct stack_canary *psc = &get_cpu_var(stack_canary);
msr_write(MSR_IA32_FS_BASE, (uint64_t)psc);
#endif
}