/** Initialize the platform interrupt controller for current HART */
int (*irqchip_init)(bool cold_boot);
+ /** Exit the platform interrupt controller for current HART */
+ void (*irqchip_exit)(void);
/** Send IPI to a target HART */
void (*ipi_send)(u32 target_hart);
}
/**
+ * Exit the platform interrupt controller for current HART
+ *
+ * @param plat pointer to struct sbi_platform
+ */
+static inline void sbi_platform_irqchip_exit(const struct sbi_platform *plat)
+{
+ if (plat && sbi_platform_ops(plat)->irqchip_exit)
+ sbi_platform_ops(plat)->irqchip_exit();
+}
+
+/**
* Send IPI to a target HART
*
* @param plat pointer to struct sbi_platform