vesper/nucleus/src/caps/thread_cap.rs

33 lines
548 B
Rust

/*
* SPDX-License-Identifier: BlueOak-1.0.0
*/
use {
super::{CapError, Capability, TryFrom},
crate::capdef,
paste::paste,
register::{register_bitfields, LocalRegisterCopy},
};
//=====================
// Cap definition
//=====================
register_bitfields! {
u128,
ThreadCap [
Type OFFSET(0) NUMBITS(6) [
value = 12
],
TCBPtr OFFSET(64) NUMBITS(48) [],
]
}
capdef! { Thread }
//=====================
// Cap implementation
//=====================
impl ThreadCapability {}