mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: guest: cleanup of remaining integral type violations
Clean up most reported integral-type-related violations still existing under arch/x86/guest/. The remaining reports that are not trivial to suppress will be explained in separate documents. Also move acpi_info outside acrn_common.h as the structure is no longer shared with DM. v1 -> v2: * Move struct acpi_info to bsp_extern.h Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -19,6 +19,14 @@
|
||||
#define BSP_EXTERN_H
|
||||
|
||||
#define UOS_DEFAULT_START_ADDR (0x100000000UL)
|
||||
|
||||
struct acpi_info {
|
||||
uint8_t x86_family;
|
||||
uint8_t x86_model;
|
||||
struct pm_s_state_data pm_s_state;
|
||||
/* TODO: we can add more acpi info field here if needed. */
|
||||
};
|
||||
|
||||
/**********************************/
|
||||
/* EXTERNAL VARIABLES */
|
||||
/**********************************/
|
||||
|
@@ -11,8 +11,8 @@
|
||||
#include <hypervisor.h>
|
||||
|
||||
const struct acpi_info host_acpi_info = {
|
||||
-1, /* x86 family */
|
||||
-1, /* x86 model */
|
||||
0, /* x86 family */
|
||||
0, /* x86 model */
|
||||
{
|
||||
{SPACE_SYSTEM_IO, 0, 0, 0, 0}, /* PM1a EVT */
|
||||
{SPACE_SYSTEM_IO, 0, 0, 0, 0}, /* PM1b EVT */
|
||||
|
Reference in New Issue
Block a user