diff options
author | dzwdz | 2024-07-13 23:37:37 +0200 |
---|---|---|
committer | dzwdz | 2024-07-13 23:37:37 +0200 |
commit | c1d3ac750b8483c9a942d2fb5d5b7245d014e905 (patch) | |
tree | 630fb27832e15f3dfde0b0723c5e08a4421e8d22 /src/libk/include | |
parent | ded843efbdad1ed048fe42c50c8fb68d50bafa51 (diff) |
kernel/malloc: limit the maximum allocation size to under a page
This will likely be changed back, but for the time being it will let me
implement a better allocator without too much effort.
Diffstat (limited to 'src/libk/include')
-rw-r--r-- | src/libk/include/assert.h | 2 | ||||
-rw-r--r-- | src/libk/include/camellia/execbuf.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libk/include/assert.h b/src/libk/include/assert.h index affe1dc..c85d096 100644 --- a/src/libk/include/assert.h +++ b/src/libk/include/assert.h @@ -9,4 +9,6 @@ #define assert(stmt) (0) #endif +#define static_assert _Static_assert + _Noreturn void __badassert(const char *func, const char *file, int line); diff --git a/src/libk/include/camellia/execbuf.h b/src/libk/include/camellia/execbuf.h index de7ae3b..8ffabad 100644 --- a/src/libk/include/camellia/execbuf.h +++ b/src/libk/include/camellia/execbuf.h @@ -1,7 +1,7 @@ #pragma once /* the instruction format is bound to change, atm it's extremely inefficient */ -#define EXECBUF_MAX_LEN 4096 +#define EXECBUF_MAX_LEN 2048 /* takes 6 arguments */ #define EXECBUF_SYSCALL 0xF0000001 |