working on reading elf from initrd, and getting it launched with the new scheduler

This commit is contained in:
2026-06-30 19:26:31 -05:00
parent ce81d4eb31
commit af6c1c94cf
21 changed files with 253 additions and 151 deletions

25
kernel/memory/mm.S Normal file
View File

@@ -0,0 +1,25 @@
.code32
.global flush_tlb
flush_tlb:
mov %cr3, %eax
mov %eax, %cr3
ret
.global disable_pae
disable_pae:
mov %cr4, %edx
and $0xFFFFFFEF, %edx
mov %edx, %cr4
ret
.global load_pd
load_pd:
push %ebp
mov %esp, %ebp
mov 8(%ebp), %eax
mov %eax, %cr3
lea flush, %ecx
jmp *%ecx
flush:
leave
ret