working on reading elf from initrd, and getting it launched with the new scheduler
This commit is contained in:
25
kernel/memory/mm.S
Normal file
25
kernel/memory/mm.S
Normal 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
|
||||
Reference in New Issue
Block a user