hv: Add reboot shell command

To trigger warm reboot for debugging.

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <Eddie.dong@intel.com>
This commit is contained in:
Yin Fengwei
2018-05-17 22:21:13 +08:00
committed by lijinxia
parent 0e5f7cb91c
commit 6ef48fa30e
6 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/*
* Copyright (C) <2018> Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <acrn_common.h>
#include <io.h>
int warm_reboot(void)
{
io_write_byte(0x6, 0xcf9);
return 0;
}