Started implementing debugging facilities

This commit is contained in:
2022-12-14 21:45:24 +00:00
parent 51e065faaf
commit 72bf6faadd
11 changed files with 124 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ bootstrap_pdpt: # a single PDPT
bootstrap_pdir_buf: # a buffer of page directories. each pdir entry can be used to map 2MB of virtual memory.
.skip BOOTSTRAP_PDIR_SIZE
bootstrap_stack_bottom:
.skip 0x1000
.skip 0x4000
bootstrap_stack_top:
/*******
@@ -260,7 +260,8 @@ long_mode_switch:
_start:
mov $bootstrap_stack_top, %esp
push %ebx # store the pointer to the multiboot info block.
push %ebx # store the pointer to the multiboot info block as a 64-bit value.
push $0x00 # store the pointer to the multiboot info block as a 64-bit value.
# check if long mode is supported
movl $0x80000000, %eax # Extended-function 80000000h.