aboutsummaryrefslogtreecommitdiff
path: root/test/test_initrd.c
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-03 07:59:01 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-03 07:59:01 +0100
commit065f42adc9af7fc4adc391bb6961460010c30d08 (patch)
treefbfee11307db6a695f4eb347dbe8a0fbb034fbf9 /test/test_initrd.c
parent4ab2ce3fb0e6b8085742c734a8f5437db5979046 (diff)
downloadfbos-065f42adc9af7fc4adc391bb6961460010c30d08.tar.gz
fbos-065f42adc9af7fc4adc391bb6961460010c30d08.zip
Remove stack pointer for each process
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à <mikisabate@gmail.com>
Diffstat (limited to 'test/test_initrd.c')
-rw-r--r--test/test_initrd.c10
1 files changed, 4 insertions, 6 deletions
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 <fbos/sched.h>
#include <fbos/mm.h>
-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)