fix kconfig

This commit is contained in:
2026-09-17 12:42:19 +02:00
committed by Marvin Friedrich
parent 27fe15f83d
commit f4cc0c17a6
2 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
mainmenu "Zinnia Kernel Configuration"
source "device/Kconfig"
source "dev/Kconfig"
config KERNEL_FLAVOR
string "Kernel flavor name"
+26
View File
@@ -0,0 +1,26 @@
#pragma once
#include <common/compiler.h>
#include <kernel/panic.h>
// Like the standard C assert, but also active in debug builds.
#define kassert(expr, msg, ...) \
({ \
if (__unlikely(!(expr))) { \
panic( \
"In function \"%s\" (%s:%u):\n" \
"Assertion \"%s\" failed!\n" msg, \
__FUNCTION__, \
__FILE__, \
__LINE__, \
#expr, \
##__VA_ARGS__ \
); \
} \
})
#ifndef NDEBUG
#define debug_assert(...) kassert(__VA_ARGS__)
#else
#define debug_assert(...) ((void)0)
#endif