Make setup generic for both NBP and DOS startup
This commit is contained in:
parent
bcff1efe59
commit
8d12a42442
2 changed files with 44 additions and 21 deletions
|
@ -2,15 +2,13 @@ main:
|
|||
mov ax, cs
|
||||
mov ds, ax
|
||||
|
||||
call debug_init
|
||||
call heap_init
|
||||
call ivt_backup
|
||||
call debug_init
|
||||
|
||||
mov ax, 18
|
||||
call malloc
|
||||
int 0x2E
|
||||
|
||||
.endloop:
|
||||
hlt
|
||||
jmp .endloop
|
||||
retf
|
||||
|
||||
%include "kernel/heap.asm"
|
||||
%include "kernel/intr.asm"
|
||||
|
@ -19,4 +17,3 @@ main:
|
|||
|
||||
align 16
|
||||
heap:
|
||||
dw 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue