limine/test/test.asm
mint 9fcb13c2a2
Tagging stivale (#16)
* Initial tagging system

* stivale: Report bootloader brand and version, change structure of memory map tag

* Reintroduce legacy stivale protocol and rename tagging stivale to stivale2
2020-08-11 17:43:39 +02:00

32 lines
472 B
NASM

; This is a compliant "kernel" meant for testing purposes.
; Header
section .stivale2hdr
stivale_header:
dq 0 ; entry point
dq stack.top ; rsp
dq 0 ; flags
dq 0 ; tags
section .bss
stack:
resb 4096
.top:
section .text
; Entry point
global _start
_start:
mov rax, 'h e l l '
mov rbx, 'o w o '
mov rcx, 'r l d '
mov rdx, 0xb8000
mov [rdx], rax
mov [rdx+8], rbx
mov [rdx+16], rcx
jmp $