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 /kernel/main.c | |
| 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 'kernel/main.c')
| -rw-r--r-- | kernel/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/main.c b/kernel/main.c index 3d2b524..5a11816 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -12,7 +12,7 @@ // memory protection of any kind, it's not like separating stacks for each // process and kernel space would make much of a difference. Hence, let's keep // it simple and have the same stack everwhere. -uint64_t stack[THREAD_SIZE / sizeof(uint64_t)]; +uint64_t stack[STACK_SIZE / sizeof(uint64_t)]; // Initialize the list of structs by providing a fixed stack address and empty // values everywhere else. |
