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à --- test/test_initrd.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'test/test_initrd.c') diff --git a/test/test_initrd.c b/test/test_initrd.c index fb5197b..75611a7 100644 --- a/test/test_initrd.c +++ b/test/test_initrd.c @@ -6,13 +6,11 @@ #include #include -unsigned long stack[STACK_SIZE / sizeof(unsigned long)]; - struct task_struct tasks[4] = { - [TASK_INIT] = { .stack = stack, .entry_addr = NULL, }, - [TASK_FIZZ] = { .stack = stack, .entry_addr = NULL, }, - [TASK_BUZZ] = { .stack = stack, .entry_addr = NULL, }, - [TASK_FIZZBUZZ] = { .stack = stack, .entry_addr = NULL, }, + [TASK_INIT] = { .entry_addr = NULL, }, + [TASK_FIZZ] = { .entry_addr = NULL, }, + [TASK_BUZZ] = { .entry_addr = NULL, }, + [TASK_FIZZBUZZ] = { .entry_addr = NULL, }, }; int main(void) -- cgit v1.2.3