We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39049fd commit 991df75Copy full SHA for 991df75
main.c
@@ -239,13 +239,14 @@ static void handle_sbi_ecall(vm_t *vm)
239
vm->error = ERR_NONE;
240
}
241
242
+#define MAPPER_SIZE 4
243
+
244
struct mapper {
245
char *addr;
246
uint32_t size;
247
};
248
-/* FIXME: Avoid hardcoding the capacity */
-static struct mapper mapper[4] = {0};
249
+static struct mapper mapper[MAPPER_SIZE] = {0};
250
static int map_index = 0;
251
static void unmap_files(void)
252
{
0 commit comments