Update kernel/kernel.c

This commit is contained in:
lohrrrr 2026-06-10 17:24:01 +03:00
parent ea68eeb09c
commit 806db673b3

View file

@ -5,8 +5,10 @@
// protecting compilation. // protecting compilation.
#if defined(__linux__) #if defined(__linux__)
#error "You should compile all with a cross-compiler. See project wiki." #error "You should compile all with a cross-compiler. See project wiki."
#elif !defined(__amd64__)
#error "This is an 32bit\64bit kernel. Please use i386 or amd64 target."
#elif !defined(__i386__) #elif !defined(__i386__)
#error "This is an 32bit kernel. Please use i386 target." #error "This is an 32bit\64bit kernel. Please use i386 or amd64 target."
#endif #endif
volatile uint16_t* vga_buffer = (uint16_t*)0xB8000; // defining VGA text mode. volatile uint16_t* vga_buffer = (uint16_t*)0xB8000; // defining VGA text mode.