609f9d86de
* initial header file * finished inode structure * finished inode permissions * updated makefile * working ext2fs build * found superblock * bgdt is ded * parsed bgdt * directory entry structure * parsed inodes * parsed root inode * found directory entries * added ext2 support * fs abstraction support * cached size in FILE * hm * removed debug statements * added to is_ext2() args * fixed read errors * comply with standards * fixed things * more fixes * more makefile fixes * even more fixes
32 lines
512 B
NASM
32 lines
512 B
NASM
; This is a compliant "kernel" meant for testing purposes.
|
|
|
|
; Header
|
|
section .stivalehdr
|
|
|
|
stivale_header:
|
|
dq stack.top ; rsp
|
|
dw 0 ; video mode
|
|
dw 0 ; fb_width
|
|
dw 0 ; fb_height
|
|
dw 0 ; fb_bpp
|
|
|
|
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 $ |