forked from nuttx/nuttx-update
arch: arm64: Add arm64_gic_raise_sgi() for SMP
Summary: - I noticed that arm64_gic_raise_sgi() is not implemented for GICv2 which is used for SMP + hypervisor such as qemu + kvm. - This commit fixes this issue Impact: - None Testing: - Tested with qemu-7.1 + kvm (linux) and qemu-7.1 + hvf (macOS) Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
745f443cbf
commit
9861d49cd4
1 changed files with 20 additions and 0 deletions
|
@ -1393,6 +1393,26 @@ void arm64_gic_secondary_init(void)
|
|||
arm_gic_initialize();
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: arm64_gic_raise_sgi
|
||||
*
|
||||
* Description:
|
||||
* Raise software generated interrupt to the target
|
||||
*
|
||||
* Input Parameters
|
||||
* sgi - The SGI interrupt ID (0-15)
|
||||
* cpuset - The set of CPUs to receive the SGI
|
||||
*
|
||||
* Returned Value:
|
||||
* OK is always returned at present.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int arm64_gic_raise_sgi(unsigned int sgi, uint16_t cpuset)
|
||||
{
|
||||
arm_cpu_sgi(sgi, cpuset);
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_SMP */
|
||||
|
||||
#endif /* CONFIG_ARM_GIC_VERSION == 2 */
|
||||
|
|
Loading…
Reference in a new issue