diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/head.S | 2 | ||||
| -rw-r--r-- | kernel/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/head.S b/kernel/head.S index 4390cc9..ac69967 100644 --- a/kernel/head.S +++ b/kernel/head.S @@ -100,7 +100,7 @@ _start_kernel: la tp, tasks // Point 'sp' the our general stack. - la sp, stack + THREAD_SIZE + la sp, stack + STACK_SIZE // The `start_kernel` function requires an argument to be passed, which is // the pointer to the `fdt` blob. The bootloader puts this on the `a1` 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. |
