Create a kernel data area for passing information

This commit is contained in:
Justin C. Miller
2018-03-27 10:40:38 -07:00
parent 561686abd3
commit 2b9a0ca15e
6 changed files with 218 additions and 68 deletions

View File

@@ -4,12 +4,14 @@ section .header
align 4
global _header
_header:
dd MAGIC
db VERSION_MAJOR
dd MAGIC ; Kernel header magic
dw 1 ; Header version 1
dw 1 ; Kernel header length
db VERSION_MAJOR ; Kernel version
db VERSION_MINOR
dw VERSION_PATCH
dd VERSION_GITSHA
dq _start
dq _start ; Kernel entrypoint
section .text
align 16