From 0d967bbff4c91039f83e34f942b6e67529a8aece 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:48:37 +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 65e33f3..84c061f 100644 --- a/boot.c +++ b/boot.c @@ -18,6 +18,11 @@ HEDLEY_NEVER_INLINE void printboard(void); char numpadkeys[]; void _start(void) { + __asm__ volatile ( + "movl $0x8000, %esp\n" + "ljmp $(0),$(start)\n" + "start:\n" + ); Cell cur = CROSS; for (char i = 0; i < 3; i++) for (char j = 0; j < 3; j++)