Fixed all previous bugs...however strange things happens when OS runs

This commit is contained in:
ice-bit
2019-07-03 21:04:05 +02:00
parent bec03e3d1b
commit a0b6eb882a
14 changed files with 66 additions and 49 deletions

View File

@@ -1,8 +1,8 @@
OBJS = multiboot.asm.o kernel_load.asm.o ports.asm.o
OBJS = multiboot.asm.o kernel_loader.asm.o ports.asm.o
ASM = nasm
ASMFLAGS = -f elf
all: $(OBJS)
%.asm.o:
%.asm.o: %.asm
$(ASM) $(ASMFLAGS) $< -o $@

View File

@@ -6,7 +6,7 @@
; https://github.com/ice-bit/iceOS ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
global kernel_load
global kernel_loader
extern kernel_main
section .text
@@ -22,4 +22,7 @@ KERNEL_STACK_SZ equ 4096 ; 4 KB for the stack
section .bss
align 4
kernel_stack:
resb KERNEL_STACK_SZ ; Reserver 4 KB
resb KERNEL_STACK_SZ ; Reserver 4 KB