Use asm memory map code for now

This commit is contained in:
Jeremy Soller
2022-02-05 21:02:12 -07:00
parent acff86a794
commit 15ba17e0b7
2 changed files with 6 additions and 1 deletions
+6 -1
View File
@@ -7,6 +7,10 @@ stage2.entry:
or al, 2
out 0x92, al
; load memory map
;TODO: rewrite this in Rust
call memory_map
mov edi, [args.stage3_base]
mov ecx, (stage3.end - stage3)
mov [args.stage3_size], ecx
@@ -106,8 +110,9 @@ load_extent:
%include "descriptor_flags.inc"
%include "gdt_entry.inc"
%include "unreal.asm"
%include "memory_map.asm"
%include "thunk.asm"
%include "unreal.asm"
USE32
protected_mode: