diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-03 07:41:45 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-03 07:41:45 +0100 |
| commit | 58fcecc381be82992f718a6ef9bf7ddcd3bca369 (patch) | |
| tree | db3fedc5bc6ea2eef84ae9f8951a84a088d9721e /include | |
| parent | 7b1b8ebb48174445083bc7fa336dc00619cbf126 (diff) | |
| download | fbos-58fcecc381be.tar.gz fbos-58fcecc381be.zip | |
Simplify the constant on the size of the stack
At the beginning I carried over things from the Linux kernel just in
case I would need them in the future. As this project is very much at a
stage where I'm already happy with it, let's remove unneeded complexity.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/fbos/mm.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/fbos/mm.h b/include/fbos/mm.h index e913fa7..017e28a 100644 --- a/include/fbos/mm.h +++ b/include/fbos/mm.h @@ -2,16 +2,13 @@ #define __FBOS_MM_H /* - * Page = 4KB. + * Page = 4KB. We don't actually use pagination, but this value is still useful + * when aligning in the linker file. */ #define PAGE_SIZE 0x1000 -/* - * Initial size of the thread, which coincides with the size of the stack for a - * given thread. - */ -#define THREAD_SIZE_ORDER 2 -#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) +// Size of the stack as used by processes on this kernel. +#define STACK_SIZE PAGE_SIZE /* * The code will be linked to start at the first page, which will have a given |
