Compare commits

..

2 commits

Author SHA1 Message Date
lohrrrr 490efaf4ca Merge pull request 'Update kernel/kernel.c' (#1) from x64-testing into main
Reviewed-on: #1
2026-06-10 17:26:32 +03:00
lohrrrr 806db673b3 Update kernel/kernel.c 2026-06-10 17:24:01 +03:00

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.