Files
acrn-hypervisor/hypervisor/arch/riscv/notify.c
Haicheng Li b03dc25119 hv: add arch_send_reschedule_request implementation for riscv support
implement arch_send_reschedule_request for riscv, it calls send_single_ipi to
kick cpu.

Tracked-On: #8812
Signed-off-by: Haicheng Li <haicheng.li@linux.intel.com>
Signed-off-by: Xue Bosheng <bosheng.xue@intel.com>
Reviewed-by: Yifan Liu  <yifan1.liu@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
2025-09-30 12:31:07 +08:00

29 lines
564 B
C

/*
* Copyright (C) 2023-2025 Intel Corporation.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Authors:
* Haicheng Li <haicheng.li@intel.com>
*/
#include <types.h>
#include <asm/irq.h>
#include <asm/sbi.h>
#include <schedule.h>
void arch_init_smp_call(void)
{
/* No special handling is required at present; this can be extended in the future if needed. */
}
void arch_smp_call_kick_pcpu(uint16_t pcpu_id)
{
send_single_ipi(pcpu_id, IPI_NOTIFY_CPU);
}
void arch_send_reschedule_request(uint16_t pcpu_id)
{
send_single_ipi(pcpu_id, IPI_NOTIFY_CPU);
}