diff --git a/kernel/device/device.c b/kernel/device/device.c index 4270582..a1800d1 100644 --- a/kernel/device/device.c +++ b/kernel/device/device.c @@ -131,7 +131,7 @@ static void debugconsole_device_init (void) { struct reschedule_ctx rctx; memset (&rctx, 0, sizeof (rctx)); - device_op_func_t ops[] = { + static device_op_func_t ops[] = { [DEBUGCONSOLE_PUTSTR] = &debugconsole_putstr, }; device_create (DEVICE_TYPE_DEBUGCONSOLE, "debugconsole", ops, lengthof (ops), &debugconsole_init, @@ -142,7 +142,7 @@ static void terminal_device_init (void) { struct reschedule_ctx rctx; memset (&rctx, 0, sizeof (rctx)); - device_op_func_t ops[] = { + static device_op_func_t ops[] = { [TERMINAL_PUTSTR] = &terminal_putstr, [TERMINAL_DIMENSIONS] = &terminal_dimensions, }; @@ -154,7 +154,7 @@ static void sys_device_init (void) { struct reschedule_ctx rctx; memset (&rctx, 0, sizeof (rctx)); - device_op_func_t ops[] = { + static device_op_func_t ops[] = { [XDRV_GET_SIZE] = &ramdrv_get_size, [XDRV_GET_SECTOR_SIZE] = &ramdrv_get_sector_size, [XDRV_GET_DEVICE_TYPE] = &ramdrv_get_device_type, @@ -174,7 +174,7 @@ static void sys_device_init (void) { break; } - const size_t unpack_buffer_size = 1024 * 1024 * 15; + const size_t unpack_buffer_size = 1024 * 1024 * 16; uint8_t* unpack_buffer = malloc (unpack_buffer_size); LZ4F_decompressionContext_t dctx; @@ -201,7 +201,7 @@ static void temp_device_init (void) { struct reschedule_ctx rctx; memset (&rctx, 0, sizeof (rctx)); - device_op_func_t ops[] = { + static device_op_func_t ops[] = { [XDRV_GET_SIZE] = &ramdrv_get_size, [XDRV_GET_SECTOR_SIZE] = &ramdrv_get_sector_size, [XDRV_GET_DEVICE_TYPE] = &ramdrv_get_device_type,