hv: acpi: remove weak parse_madt

Since it's discarded.

Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Li, Fei1 2018-12-06 00:03:02 +08:00 committed by wenlingz
parent c616a42251
commit 3afc5113c4
5 changed files with 35 additions and 35 deletions

View File

@ -5,6 +5,7 @@
*/
#include <hypervisor.h>
#include <acpi.h>
#include <schedule.h>
#include <version.h>
#include <trampoline.h>
@ -271,18 +272,6 @@ static int hardware_detect_support(void)
return 0;
}
uint16_t __attribute__((weak)) parse_madt(uint32_t lapic_id_array[CONFIG_MAX_PCPU_NUM])
{
static const uint32_t lapic_id[] = {0U, 2U, 4U, 6U};
uint32_t i;
for (i = 0U; i < ARRAY_SIZE(lapic_id); i++) {
lapic_id_array[i] = lapic_id[i];
}
return ((uint16_t)ARRAY_SIZE(lapic_id));
}
static void init_percpu_lapic_id(void)
{
uint16_t i;

View File

@ -28,6 +28,7 @@
*/
#include <hypervisor.h>
#include "acpi_priv.h"
#include "acpi.h"
#include <vm0_boot.h>

View File

@ -8,7 +8,7 @@
#include <hypervisor.h>
#include "pci.h"
#include "vtd.h"
#include "acpi.h"
#include "acpi_priv.h"
enum acpi_dmar_type {
ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,

View File

@ -7,28 +7,6 @@
#ifndef ACPI_H
#define ACPI_H
struct acpi_table_header {
/* ASCII table signature */
char signature[4];
/* Length of table in bytes, including this header */
uint32_t length;
/* ACPI Specification minor version number */
uint8_t revision;
/* To make sum of entire table == 0 */
uint8_t checksum;
/* ASCII OEM identification */
char oem_id[6];
/* ASCII OEM table identification */
char oem_table_id[8];
/* OEM revision number */
uint32_t oem_revision;
/* ASCII ASL compiler vendor ID */
char asl_compiler_id[4];
/* ASL compiler version */
uint32_t asl_compiler_revision;
};
uint16_t parse_madt(uint32_t lapic_id_array[CONFIG_MAX_PCPU_NUM]);
void *get_dmar_table(void);
#endif /* !ACPI_H */

View File

@ -0,0 +1,32 @@
/*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef ACPI_PRIV_H
#define ACPI_PRIV_H
struct acpi_table_header {
/* ASCII table signature */
char signature[4];
/* Length of table in bytes, including this header */
uint32_t length;
/* ACPI Specification minor version number */
uint8_t revision;
/* To make sum of entire table == 0 */
uint8_t checksum;
/* ASCII OEM identification */
char oem_id[6];
/* ASCII OEM table identification */
char oem_table_id[8];
/* OEM revision number */
uint32_t oem_revision;
/* ASCII ASL compiler vendor ID */
char asl_compiler_id[4];
/* ASL compiler version */
uint32_t asl_compiler_revision;
};
void *get_dmar_table(void);
#endif /* !ACPI_PRIV_H */