Update kernel

This commit is contained in:
EnderIce2
2024-01-19 06:47:42 +02:00
parent fd15592608
commit 96daa43d38
282 changed files with 25486 additions and 15700 deletions

View File

@ -18,6 +18,7 @@
#ifdef DEBUG
#include <types.h>
#include <filesystem/ioctl.hpp>
#include <memory/macro.hpp>
#include <memory/vma.hpp>
#include <assert.h>
@ -46,12 +47,11 @@
#endif // UINTPTR_MAX != UINT64_MAX
#endif // aa64
void TestSeekMacros()
{
static_assert(sc_SEEK_SET == SEEK_SET);
static_assert(sc_SEEK_CUR == SEEK_CUR);
static_assert(sc_SEEK_END == SEEK_END);
}
static_assert(sc_SEEK_SET == SEEK_SET);
static_assert(sc_SEEK_CUR == SEEK_CUR);
static_assert(sc_SEEK_END == SEEK_END);
static_assert(TIOCGPTN == 0x80045430);
static_assert(TIOCSPTLCK == 0x40045431);
__constructor void TestMacros()
{
@ -154,6 +154,17 @@ __constructor void TestMacros()
inf_loop;
}
}
{
constexpr int x = 5;
constexpr int y = 10;
constexpr int max_result = MAX(x, y);
constexpr int min_result = MIN(x, y);
static_assert(max_result == 10);
static_assert(min_result == 5);
}
}
#endif // DEBUG