mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +00:00
DM: Add funciton to update PM_WAK_STS
According to ACPI spec, when system back to working mode from S3, WAK_STS bit (15) should be set. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -175,6 +175,15 @@ pm1_status_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
pm_backto_wakeup(struct vmctx *ctx)
|
||||
{
|
||||
/* According to ACPI 5.0 Table 4-16: bit 15, WAK_STS should be
|
||||
* set when system trasition to the working state
|
||||
*/
|
||||
pm1_status |= PM1_WAK_STS;
|
||||
}
|
||||
|
||||
static int
|
||||
pm1_enable_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,
|
||||
uint32_t *eax, void *arg)
|
||||
|
||||
Reference in New Issue
Block a user