From a7287a7891d9ead98221c3de79d46d487e0d68ac Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 30 Nov 2024 23:42:08 +0100 Subject: Document what we mean by scheduling on this kernel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The notion of 'scheduling' a process on this kernel is effectively the same as starting the process anew. This is pretty bananas for any general purpose kernel, but this is not our case. Signed-off-by: Miquel Sabaté Solà --- kernel/head.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kernel/head.S') diff --git a/kernel/head.S b/kernel/head.S index 210eb7c..31f423e 100644 --- a/kernel/head.S +++ b/kernel/head.S @@ -94,7 +94,9 @@ _start_kernel: li t6, 0 csrw sscratch, 0 - // Point tp and sp to the init task. + // Point tp and sp to the init task. This is not crucial because in the end + // we are not doing anything with the 'tp' register, and our processes + // actually don't do anything on the stack. la tp, tasks la sp, tasks + THREAD_SIZE -- cgit v1.2.3