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:
Yi Y Sun
2025-09-25 15:23:39 +08:00
committed by acrnsi-robot
parent 64055b49be
commit 6abe2e950c
2 changed files with 2 additions and 7 deletions

View File

@@ -155,6 +155,8 @@ COMMON_C_SRCS += lib/memory.c
COMMON_C_SRCS += lib/bits.c
COMMON_C_SRCS += common/ticks.c
COMMON_C_SRCS += common/delay.c
COMMON_C_SRCS += common/timer.c
COMMON_C_SRCS += common/softirq.c
# library componment
COMMON_C_SRCS += lib/string.c
@@ -169,9 +171,7 @@ COMMON_C_SRCS += lib/stack_protector.c
endif
ifeq ($(ARCH),x86)
COMMON_C_SRCS += common/timer.c
COMMON_C_SRCS += common/irq.c
COMMON_C_SRCS += common/softirq.c
COMMON_C_SRCS += common/schedule.c
COMMON_C_SRCS += common/event.c
COMMON_C_SRCS += common/efi_mmap.c

View File

@@ -7,11 +7,6 @@
#include <types.h>
#include <errno.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 <trace.h>
#include <asm/irq.h>