From 065f42adc9af7fc4adc391bb6961460010c30d08 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 3 Dec 2024 07:59:01 +0100 Subject: Remove stack pointer for each process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since 6132623dbf30 ("Share the same stack everywhere") the same stack is used everywhere. Hence, it's rather pointless for each task to have a pointer to a stack which is the same and that is never read. Signed-off-by: Miquel Sabaté Solà --- include/fbos/sched.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include') diff --git a/include/fbos/sched.h b/include/fbos/sched.h index 67778da..ced620c 100644 --- a/include/fbos/sched.h +++ b/include/fbos/sched.h @@ -17,12 +17,6 @@ enum task_id { // All the information we need to grab for processes. struct task_struct { - // The stack allocated for the process. As you can see when initializing - // each process on `kernel/main.c`, we go over the top for its size. There - // is also the fact that we need to keep this as the first attribue to allow - // for simple `sp` values. - void *stack; - // Name of the task to be printed for debugging purposes. const char name[TASK_NAME_LEN]; -- cgit v1.2.3