Добавлен режим "без отладочной информации"

This commit is contained in:
Aren Elchinyan 2023-11-18 15:26:04 +03:00
parent 90c3fd689c
commit 28c1a6ef55
4 changed files with 10 additions and 6 deletions

View File

@ -33,10 +33,14 @@ enum colors {
#define SCREEN_HEIGHT height #define SCREEN_HEIGHT height
#define SCREEN_BUFFER fb_addr #define SCREEN_BUFFER fb_addr
#ifndef NO_DEBUG
#define LOG(...) \ #define LOG(...) \
fb_printf("[%u]%s() (%s:%d) ", GET_TICK_BIG, __func__, __FILE__, \ fb_printf("[%u]%s() (%s:%d) ", GET_TICK_BIG, __func__, __FILE__, \
__LINE__); \ __LINE__); \
fb_printf(__VA_ARGS__) fb_printf(__VA_ARGS__)
#else
#define LOG(...)
#endif
void fb_set_text_color(uint32_t color); void fb_set_text_color(uint32_t color);
void fb_init( ); void fb_init( );

View File

@ -1,3 +1,3 @@
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 1 #define VERSION_MINOR 1
#define VERSION_BUILD 580 #define VERSION_BUILD 582

View File

@ -24,11 +24,11 @@ void _start( ) {
mem_init( ); mem_init( );
fb_set_text_color(0x00FF00); fb_set_text_color(0x00FF00);
LOG("\t\t\t\t *** Базовая Модульная Платформа Операционных Систем " fb_printf("\t\t\t\t *** Базовая Модульная Платформа Операционных Систем "
"версии %u.%u.%u %s***\n", "версии %u.%u.%u %s***\n",
VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, KERNEL_GIT_TAG); VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, KERNEL_GIT_TAG);
LOG("\t\t\t\t *** Дата сборки: %s %s ***\n", __DATE__, __TIME__); fb_printf("\t\t\t\t *** Дата сборки: %s %s ***\n", __DATE__, __TIME__);
fb_set_text_color(0x00D000); fb_set_text_color(0x00D000);
mod_init( ); mod_init( );

View File

@ -13,7 +13,7 @@ if "^.M" in output:
ARCH_FLAGS = "-m64 -march=x86-64 -mabi=sysv -mno-red-zone -mcmodel=kernel -MMD -MP" ARCH_FLAGS = "-m64 -march=x86-64 -mabi=sysv -mno-red-zone -mcmodel=kernel -MMD -MP"
WARN_FLAGS = "-Wall -Wextra -nostdlib" WARN_FLAGS = "-Wall -Wextra -nostdlib"
STANDART_FLAGS = f"-std=gnu11 -DKERNEL_GIT_TAG=\\\"{__VERSION}\\\"" STANDART_FLAGS = f"-std=gnu11 -DKERNEL_GIT_TAG=\\\"{__VERSION}\\\"" # -DNO_DEBUG=1
PROTECT_FLAGS = "-O0 -g -pipe -ffreestanding -fno-stack-protector -fno-lto -fno-stack-check -fno-PIC -fno-PIE" PROTECT_FLAGS = "-O0 -g -pipe -ffreestanding -fno-stack-protector -fno-lto -fno-stack-check -fno-PIC -fno-PIE"
CHARSET_FLAGS = "-finput-charset=UTF-8 -fexec-charset=cp1251" CHARSET_FLAGS = "-finput-charset=UTF-8 -fexec-charset=cp1251"
LIBS_FLAGS = "-Ilimine -Iinclude" LIBS_FLAGS = "-Ilimine -Iinclude"