Skip to content

Instantly share code, notes, and snippets.

@Mischa-Alff
Created May 17, 2014 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mischa-Alff/3c06cc4ea62305b59e2c to your computer and use it in GitHub Desktop.
Save Mischa-Alff/3c06cc4ea62305b59e2c to your computer and use it in GitHub Desktop.
; 32bit stuff
push eax
push ebx
;... set up long mode stuff
pop ebx
pop eax
lgdt [gdt.ptr]
jmp gdt.code:entry64
BITS 64
cli
and rax, 0xFFFFFFFF
mov rdi, rax
mov rsi, rbx
call kmain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment