diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-02 21:02:35 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-02 21:02:35 +0100 |
| commit | 6132623dbf3076da11cdb85c494fadd7ee0f0a93 (patch) | |
| tree | bcfeaade99c13b9a02fff282e8ef3998e405f14a /include | |
| parent | d4e2441ad7063ce7ca29981ca527b1aa643b0b0c (diff) | |
| download | fbos-6132623dbf30.tar.gz fbos-6132623dbf30.zip | |
Share the same stack everywhere
As documented in the code, we are not implementing any kind of memory
protection, so in theory any process (regardless if running in user or
kernel space) would be able to tamper with other processes' stack.
Hence, don't even pretend that we are separating stacks and share the
same global stack everywhere. This simplifies things a bit.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/fbos/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fbos/sched.h b/include/fbos/sched.h index e8edafd..67778da 100644 --- a/include/fbos/sched.h +++ b/include/fbos/sched.h @@ -30,6 +30,9 @@ struct task_struct { const void *entry_addr; }; +// Instantiated in kernel/main.c. +extern uint64_t stack[]; + // Tasks available on this kernel. extern struct task_struct tasks[4]; |
