diff --git a/src/sys/config.rs b/src/sys/config.rs index 5581bf28..fc6960fd 100644 --- a/src/sys/config.rs +++ b/src/sys/config.rs @@ -91,7 +91,7 @@ pub mod kernel { /// - The value of this function has direct impact on IPC performance. /// - The default value is set to match the size of a cache line in x86 processors. /// - pub const TOTAL_SIZE: usize = 64; + pub const IPC_MESSAGE_SIZE: usize = 64; } //================================================================================================== diff --git a/src/sys/ipc/message.rs b/src/sys/ipc/message.rs index 2a53dded..602b4784 100644 --- a/src/sys/ipc/message.rs +++ b/src/sys/ipc/message.rs @@ -43,7 +43,7 @@ pub struct Message { /// Payload of the message. pub payload: [u8; Self::PAYLOAD_SIZE], } -crate::static_assert_size!(Message, config::kernel::TOTAL_SIZE); +crate::static_assert_size!(Message, config::kernel::IPC_MESSAGE_SIZE); //================================================================================================== // Implementations @@ -54,7 +54,7 @@ impl Message { pub const HEADER_SIZE: usize = 2 * mem::size_of::() + MessageType::SIZE + mem::size_of::(); /// The size of the message's payload. - pub const PAYLOAD_SIZE: usize = config::kernel::TOTAL_SIZE - Self::HEADER_SIZE; + pub const PAYLOAD_SIZE: usize = config::kernel::IPC_MESSAGE_SIZE - Self::HEADER_SIZE; /// /// # Description