mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-14 10:31:59 +00:00
hv: riscv: build timer and softirq
This patch moves timer.c and softirq.c out from x86 to make them be built for risc-v too. Tracked-On: #8816 Signed-off-by: Yi Y Sun <yi.y.sun@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -155,6 +155,8 @@ COMMON_C_SRCS += lib/memory.c
|
|||||||
COMMON_C_SRCS += lib/bits.c
|
COMMON_C_SRCS += lib/bits.c
|
||||||
COMMON_C_SRCS += common/ticks.c
|
COMMON_C_SRCS += common/ticks.c
|
||||||
COMMON_C_SRCS += common/delay.c
|
COMMON_C_SRCS += common/delay.c
|
||||||
|
COMMON_C_SRCS += common/timer.c
|
||||||
|
COMMON_C_SRCS += common/softirq.c
|
||||||
|
|
||||||
# library componment
|
# library componment
|
||||||
COMMON_C_SRCS += lib/string.c
|
COMMON_C_SRCS += lib/string.c
|
||||||
@@ -169,9 +171,7 @@ COMMON_C_SRCS += lib/stack_protector.c
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),x86)
|
ifeq ($(ARCH),x86)
|
||||||
COMMON_C_SRCS += common/timer.c
|
|
||||||
COMMON_C_SRCS += common/irq.c
|
COMMON_C_SRCS += common/irq.c
|
||||||
COMMON_C_SRCS += common/softirq.c
|
|
||||||
COMMON_C_SRCS += common/schedule.c
|
COMMON_C_SRCS += common/schedule.c
|
||||||
COMMON_C_SRCS += common/event.c
|
COMMON_C_SRCS += common/event.c
|
||||||
COMMON_C_SRCS += common/efi_mmap.c
|
COMMON_C_SRCS += common/efi_mmap.c
|
||||||
|
|||||||
@@ -7,11 +7,6 @@
|
|||||||
#include <types.h>
|
#include <types.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <per_cpu.h>
|
#include <per_cpu.h>
|
||||||
#include <asm/io.h>
|
|
||||||
#include <asm/msr.h>
|
|
||||||
#include <asm/apicreg.h>
|
|
||||||
#include <asm/cpuid.h>
|
|
||||||
#include <asm/cpu_caps.h>
|
|
||||||
#include <softirq.h>
|
#include <softirq.h>
|
||||||
#include <trace.h>
|
#include <trace.h>
|
||||||
#include <asm/irq.h>
|
#include <asm/irq.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user