about summary refs log tree commit diff
path: root/boot/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/common.c')
-rw-r--r--boot/common.c8
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.