aboutsummaryrefslogtreecommitdiff
path: root/kernel/head.S
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-30 23:42:08 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-30 23:42:08 +0100
commita7287a7891d9ead98221c3de79d46d487e0d68ac (patch)
tree5fbdcd50e0f6d1b3e797a108ec50d23e9a0ca78b /kernel/head.S
parentf560a5312f524caaa427f4f548b97ab3f32904b8 (diff)
downloadfbos-a7287a7891d9ead98221c3de79d46d487e0d68ac.tar.gz
fbos-a7287a7891d9ead98221c3de79d46d487e0d68ac.zip
Document what we mean by scheduling on this kernel
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à <mikisabate@gmail.com>
Diffstat (limited to 'kernel/head.S')
-rw-r--r--kernel/head.S4
1 files changed, 3 insertions, 1 deletions
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