QTechOS/kernel/drivers/opensbi/extensions/ipi.cpp

27 lines
544 B
C++
Raw Normal View History

2022-01-24 21:36:53 -05:00
#include "opensbi/extensions/ipi.h"
namespace drivers {
namespace opensbi::ipi {
namespace {
enum class ExtensionId {
IPI = 0x735049
};
enum class FunctionId {
SEND_IPI
};
}
SbiRet send_ipi(HartMask hart_mask) {
2022-01-24 21:36:53 -05:00
return ecall(
static_cast<sbiword_t>(ExtensionId::IPI),
static_cast<sbiword_t>(FunctionId::SEND_IPI),
hart_mask.mask,
hart_mask.base);
2022-01-24 21:36:53 -05:00
}
} // End namespace opensbi::ipi
} // End namespace drivers