From 3c08203437213c25dc21ba479d90baf7039ebad3 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 17 Aug 2015 15:12:22 +0200 Subject: [PATCH] Call rust main function --- src/arch/x86_64/long_mode_init.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/arch/x86_64/long_mode_init.asm b/src/arch/x86_64/long_mode_init.asm index 387c2fa4..a8193beb 100644 --- a/src/arch/x86_64/long_mode_init.asm +++ b/src/arch/x86_64/long_mode_init.asm @@ -13,10 +13,14 @@ ; limitations under the License. global long_mode_start +extern main section .text bits 64 long_mode_start: + + ; call rust main + call main ; print `OKAY` to screen mov rax, 0x2f592f412f4b2f4f mov qword [0xb8000], rax