Skip to content

Commit

Permalink
fix(firecracker): use load boot page table into 64-Bit register
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Dec 10, 2024
1 parent dc5ad9a commit fba41b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/x86_64/entry_fc.s
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ _start:
pop rdi

# Set CR3
mov eax, OFFSET boot_pml4
;or eax, (1 << 0) # set present bit
mov rax, OFFSET boot_pml4
;or rax, (1 << 0) # set present bit
mov cr3, rax

lgdt [GDT64.Pointer] # Load the 64-bit global descriptor table.
Expand Down

0 comments on commit fba41b6

Please sign in to comment.