Commit f1038983 authored by Ian Seyler's avatar Ian Seyler

Remove debugging breakpoint

parent eec090b4
......@@ -348,10 +348,8 @@ pd_high_entry:
pd_high_done:
jmp $
; Build a temporary IDT
xor rdi, rdi ; create the 64-bit IDT (at linear address 0x0000000000000000)
xor edi, edi ; create the 64-bit IDT (at linear address 0x0000000000000000)
mov rcx, 32
make_exception_gates: ; make gates for exception handlers
......@@ -429,7 +427,7 @@ make_interrupt_gates: ; make gates for the other interrupts
; Clear memory 0xf000 - 0xf7ff for the infomap (2048 bytes)
xor eax, eax
mov ecx, 256
mov rdi, 0x000000000000F000
mov edi, 0x0000F000
clearmapnext:
stosq
dec ecx
......@@ -453,38 +451,6 @@ clearmapnext:
add rax, 0x0000000000050400 ; stacks decrement when you "push", start at 1024 bytes in
mov rsp, rax ; Pure64 leaves 0x50000-0x9FFFF free so we use that
; Calculate amount of usable RAM from Memory Map
; xor ecx, ecx
; mov rsi, 0x0000000000006000 ; E820 Map location
;readnextrecord:
; lodsq
; lodsq
; lodsd
; cmp eax, 0 ; Are we at the end?
; je endmemcalc
; cmp eax, 1 ; Useable RAM
; je goodmem
; cmp eax, 3 ; ACPI Reclaimable
; je goodmem
; cmp eax, 6 ; BIOS Reclaimable
; je goodmem
; lodsd
; lodsq
; jmp readnextrecord
;goodmem:
; sub rsi, 12
; lodsq
; add rcx, rax
; lodsq
; lodsq
; jmp readnextrecord
;
;endmemcalc:
; shr rcx, 20 ; Value is in bytes so do a quick divide by 1048576 to get MiB's
; add ecx, 1 ; The BIOS will usually report actual memory minus 1
; and ecx, 0xFFFFFFFE ; Make sure it is an even number (in case we added 1 to an even number)
; mov dword [mem_amount], ecx
; Build the infomap
xor edi, edi
mov di, 0x5000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment