From 58fcecc381be82992f718a6ef9bf7ddcd3bca369 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 3 Dec 2024 07:41:45 +0100 Subject: Simplify the constant on the size of the stack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- kernel/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/head.S') 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` -- cgit v1.2.3