Print OS returned! instead of OKAY

This commit is contained in:
Philipp Oppermann
2015-08-17 15:20:09 +02:00
parent e09ae042a3
commit 03a46b4141

View File

@@ -22,9 +22,14 @@ long_mode_start:
; call rust main ; call rust main
call main call main
; print `OKAY` to screen .os_returned:
mov rax, 0x2f592f412f4b2f4f ; rust main returned, print `OS returned!`
mov qword [0xb8000], rax mov rax, 0x4f724f204f534f4f
mov [0xb8000], rax
mov rax, 0x4f724f754f744f65
mov [0xb8008], rax
mov rax, 0x4f214f644f654f6e
mov [0xb8010], rax
hlt hlt
; Check for SSE and enable it. If it's not supported throw error "a". ; Check for SSE and enable it. If it's not supported throw error "a".