From 090354c882bcb6c071e6a5a37ded2e1ddd5e209b Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Wed, 24 Mar 2021 20:21:30 +0800 Subject: [PATCH] kernel: services: remove syscall_stack This field is unused, so remove it. Signed-off-by: Sean Cross --- kernel/src/services.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/kernel/src/services.rs b/kernel/src/services.rs index cdd614914..f089a11f7 100644 --- a/kernel/src/services.rs +++ b/kernel/src/services.rs @@ -28,12 +28,6 @@ pub struct SystemServices { /// A table of all servers in the system servers: [Option; MAX_SERVER_COUNT], - - /// A log of the currently-active syscall depth - _syscall_stack: [(usize, usize); 3], - - /// How many entries there are on the syscall stack - _syscall_depth: usize, } #[derive(Copy, Clone, PartialEq)] @@ -224,8 +218,6 @@ std::thread_local!(static SYSTEM_SERVICES: core::cell::RefCell = // Note we can't use MAX_SERVER_COUNT here because of how Rust's // macro tokenization works servers: filled_array![None; 32], - _syscall_stack: [(0, 0), (0, 0), (0, 0)], - _syscall_depth: 0, })); #[cfg(baremetal)] @@ -241,8 +233,6 @@ static mut SYSTEM_SERVICES: SystemServices = SystemServices { // Note we can't use MAX_SERVER_COUNT here because of how Rust's // macro tokenization works servers: filled_array![None; 32], - _syscall_stack: [(0, 0), (0, 0), (0, 0)], - _syscall_depth: 0, }; impl core::fmt::Debug for Process {