aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/boot.asm
diff options
context:
space:
mode:
authorMarvin Borner2020-06-17 18:31:46 +0200
committerMarvin Borner2020-06-17 18:31:46 +0200
commiteed77bd2970a00d1394ed027ceca5b646e4671ce (patch)
treec44643d98aed2b6818f2b33417c0dea9c5853094 /src/kernel/boot.asm
parent49dfa1f4021026bf7c4d77817959c8aa24067016 (diff)
Started rewrite
Diffstat (limited to 'src/kernel/boot.asm')
-rw-r--r--src/kernel/boot.asm49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/kernel/boot.asm b/src/kernel/boot.asm
deleted file mode 100644
index 1e8d3ee..0000000
--- a/src/kernel/boot.asm
+++ /dev/null
@@ -1,49 +0,0 @@
-bits 32
-
-kernel_stack equ 0x4000
-multiboot_magic equ 0xe85250d6
-
-section .text
- align 4
-
- multiboot:
- header_start:
- dd multiboot_magic
- dd 0
- dd header_end - header_start
- dd 0x100000000 - (multiboot_magic + 0 + (header_end - header_start))
-
- ; Information tag
- align 8
- dw 1
- dw 1
- dd 24
- dd 2 ; bootloader name
- dd 4 ; meminfo
- dd 6 ; mmap
- dd 13 ; smbios
-
- ; Empty tag
- align 8
- dw 0
- dw 0
- dd 8
- header_end:
-
- global boot
- extern kernel_main
- boot:
- mov esp, stack_top
- push esp
- push ebx
- push eax
- cli
- call kernel_main
- hlt
- jmp $
-
-section .bss
- align 32
- stack_bottom:
- resb kernel_stack
- stack_top: \ No newline at end of file