Skip to content

Commit

Permalink
kernel: allocate port tokens as Token::SlotMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Jan 30, 2025
1 parent 8621b29 commit d2e2eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oro-kernel/src/port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ impl Port {
#[must_use]
pub fn new() -> Option<Self> {
Some(Self {
producer_token: crate::tab::get().add(Token::Normal(NormalToken::new_4kib(1)))?,
consumer_token: crate::tab::get().add(Token::Normal(NormalToken::new_4kib(1)))?,
producer_token: crate::tab::get().add(Token::SlotMap(NormalToken::new_4kib(1)))?,
consumer_token: crate::tab::get().add(Token::SlotMap(NormalToken::new_4kib(1)))?,
})
}

Expand Down

0 comments on commit d2e2eb7

Please sign in to comment.