From 621f71585ea7f3ce51ebf797df2ba8802e295553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Sun, 20 Oct 2024 17:49:09 +0500 Subject: [PATCH] Do some initialization. (Just in case.) --- boot.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boot.c b/boot.c index d8ce957..c916623 100644 --- a/boot.c +++ b/boot.c @@ -4,6 +4,11 @@ HEDLEY_ALWAYS_INLINE void putchar(char); HEDLEY_ALWAYS_INLINE void write(char*); void _start(void) { + __asm__ volatile ( + "movl $0x8000, %esp\n" + "ljmp $(0),$(start)\n" + "start:\n" + ); write("Hello World!\r\n\0"); while(1) ;