Fix initrd_fs not saving mailbox number until initialization complete
This commit is contained in:
parent
6c9c9349b6
commit
3c29dbcb76
@ -1,7 +1,7 @@
|
||||
.global _start
|
||||
_start:
|
||||
call get_free_mailbox ; Get a mailbox
|
||||
push hl
|
||||
ld (mailbox_num), hl
|
||||
ld de, 1
|
||||
call get_free_frame ; Set up a frame to send messages at 0x8000
|
||||
ld b, c
|
||||
@ -81,8 +81,6 @@ adc a, 0
|
||||
ld c, a
|
||||
jp initrd_read_loop
|
||||
call proc_map_set ; Register ourselves as ID 1
|
||||
pop hl
|
||||
ld (mailbox_num), hl
|
||||
msg_loop:
|
||||
call yield
|
||||
ld hl, (mailbox_num)
|
||||
|
Loading…
Reference in New Issue
Block a user