Skip to content

Conversation

korken89
Copy link
Contributor

@korken89 korken89 commented Oct 9, 2025

Refactor GIC initialization code

This builds on my previous PR, so I'll mark this WIP until that's merged and I'll rebase this.

/// Initialize the GICv3 controller for a single core
///
/// Returns the initialized GicV3 instance for further configuration
pub fn init_gic() -> arm_gic::gicv3::GicV3<'static> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be unsafe, or it needs to return an Option<Gic> (and return Some(gic) the first time and None thereafter).

@korken89
Copy link
Contributor Author

I'm closing this in favor of #74 - it was just better :D

@korken89 korken89 closed this Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants