mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-04 05:09:49 +00:00
1. in UEFI bsp code, not need UEFI macro; it is controlled in makefile. 2. in vm/acpi/interrupt code, unify the API name for SBL & UEFI. 3. remove unnecessary header including and unused code. Tracked-On: #1842 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
31 lines
421 B
C
31 lines
421 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <hypervisor.h>
|
|
#include <e820.h>
|
|
|
|
void init_bsp(void)
|
|
{
|
|
#ifndef CONFIG_CONSTANT_ACPI
|
|
acpi_fixup();
|
|
#endif
|
|
}
|
|
|
|
uint64_t bsp_get_ap_trampoline(void)
|
|
{
|
|
return e820_alloc_low_memory(CONFIG_LOW_RAM_SIZE);
|
|
}
|
|
|
|
void *bsp_get_rsdp(void)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
void bsp_init_irq(void)
|
|
{
|
|
CPU_IRQ_ENABLE();
|
|
}
|