diff options
| author | Mel <mel@rnrd.eu> | 2026-01-26 03:15:18 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-01-26 03:15:18 +0100 |
| commit | 38bc2d06fff322a99ba6ba46df69bbd2b40c6173 (patch) | |
| tree | 0485c271240bdde9d5cded82623b76e734fe9f70 /boot/common.c | |
| parent | 4dc6b49db40eaebf700d5c26c93c5f33b3db60ac (diff) | |
| download | catskill-38bc2d06fff322a99ba6ba46df69bbd2b40c6173.tar.zst catskill-38bc2d06fff322a99ba6ba46df69bbd2b40c6173.zip | |
Streamline build and temporary build directory, copy runtime
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/common.c')
| -rw-r--r-- | boot/common.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/boot/common.c b/boot/common.c index 1c65deb..125af86 100644 --- a/boot/common.c +++ b/boot/common.c @@ -10,6 +10,7 @@ #pragma once +#include <fcntl.h> #include <math.h> #include <stdarg.h> #include <stddef.h> @@ -17,6 +18,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/mman.h> +#include <sys/stat.h> +#include <sys/types.h> #include <unistd.h> #define uint8 uint8_t @@ -53,7 +57,7 @@ // the array will be filled with hexadecimal values of the file contents, // with a nil byte appended at the end. // the size of the array can be retrieved through `strlen(array)`, or `ARRAY_SIZE(array)-1`. -#define CATSKILL_EMBED(...) {0} +#define CATSKILL_EMBED(...) { 0 } // ansi escape codes for terminal color and style #define ANSI(code) "\33[" code "m" @@ -188,7 +192,7 @@ log_error(const ascii* message, ...) #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) // the common size of region memory blocks. -#define REGION_SIZE 65536 +#define REGION_SIZE 1048576 // statically allocates a region of memory of a given size // for a single type. |
