aboutsummaryrefslogtreecommitdiffstats
path: root/src/boot.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot.asm')
-rw-r--r--src/boot.asm12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/boot.asm b/src/boot.asm
index 513c392..73ea860 100644
--- a/src/boot.asm
+++ b/src/boot.asm
@@ -50,18 +50,12 @@ KernelInit:
call CopyHramCode ; move context-switch trampoline into HRAM
call ProcInit ; wipe process table
- ; --- spawn the two demo tasks (text-in-ROM model) ---
- ; task A: entry TaskA, RAM bank 0, u-area WRAM bank 1
- ld hl, TaskA
- ld b, 0 ; RAM bank
+ ; --- spawn the init task (pid 1); it fork()s the rest ---
+ ld hl, TaskInit
+ ld b, 0 ; cart-RAM bank 0
ld c, 1 ; WRAM u-area bank
call ProcCreate
- ld hl, TaskB
- ld b, 1
- ld c, 2
- call ProcCreate
-
call SchedInit ; pick first task, set wCurProc
; interrupts: enable timer for preemption