// SPDX-License-Identifier: MPL-2.0
// SPDX-FileCopyrightText: 2022 repnop
//
// This Source Code Form is subject to the terms of the Mozilla Public License,
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at https://mozilla.org/MPL/2.0/.
use crate::;
/// The IPI extension ID
pub const EXTENSION_ID: usize = 0x735049;
/// Send an inter-processor interrupt (IPI) to the harts defined in `hart_mask`.
/// The IPI is received on a hart as a supervisor software interrupt.
///
/// ### Possible errors
///
/// [`SbiError::INVALID_PARAMETER`]: The `hart_mask` base or any hart IDs
/// specified by `hart_mask` are invalid or unaccessible from supervisor
/// mode