Skip to content

Commit

Permalink
irq_control_get_trigger: change trigger to bool
Browse files Browse the repository at this point in the history
Signed-off-by: Alwin Joshy <joshyalwin@gmail.com>
  • Loading branch information
alwin-joshy committed Jul 17, 2024
1 parent 76034e5 commit 0a5faea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/sel4-capdl-initializer/types/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ pub mod object {
#[derive(Debug, Clone, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct ArmIrqExtraInfo {
pub trigger: Word,
pub trigger: bool,
pub target: Word,
}

Expand Down
8 changes: 4 additions & 4 deletions crates/sel4/src/arch/arm/invocations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ impl<C: InvocationContext> IrqControl<C> {
pub fn irq_control_get_trigger_core(
self,
irq: Word,
trigger: Word,
edge_triggered: bool,
target: Word,
dst: &AbsoluteCPtr,
) -> Result<()> {
Error::wrap(self.invoke(|cptr, ipc_buffer| {
ipc_buffer.inner_mut().seL4_IRQControl_GetTriggerCore(
cptr.bits(),
irq,
trigger,
edge_triggered.into(),
dst.root().bits(),
dst.path().bits(),
dst.path().depth_for_kernel(),
Expand All @@ -166,14 +166,14 @@ impl<C: InvocationContext> IrqControl<C> {
pub fn irq_control_get_trigger(
self,
irq: Word,
trigger: Word,
edge_triggered: bool,
dst: &AbsoluteCPtr,
) -> Result<()> {
Error::wrap(self.invoke(|cptr, ipc_buffer| {
ipc_buffer.inner_mut().seL4_IRQControl_GetTrigger(
cptr.bits(),
irq,
trigger,
edge_triggered.into(),
dst.root().bits(),
dst.path().bits(),
dst.path().depth_for_kernel(),
Expand Down

0 comments on commit 0a5faea

Please sign in to comment.