mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-18 07:17:49 +00:00
Do a far jump to long mode and print OKAY
This commit is contained in:
9
src/arch/x86_64/long_mode_init.asm
Normal file
9
src/arch/x86_64/long_mode_init.asm
Normal file
@@ -0,0 +1,9 @@
|
||||
global long_mode_start
|
||||
|
||||
section .text
|
||||
bits 64
|
||||
long_mode_start:
|
||||
; print `OKAY` to screen
|
||||
mov rax, 0x2f592f412f4b2f4f
|
||||
mov qword [0xb8000], rax
|
||||
hlt
|
||||
Reference in New Issue
Block a user