diff --git a/src/user-apps/hello/hello.c b/src/user-apps/hello/hello.c index 20ea16a..7d32f09 100644 --- a/src/user-apps/hello/hello.c +++ b/src/user-apps/hello/hello.c @@ -17,8 +17,7 @@ #include -[[noreturn]] -void _start() { +void main() { struct framebuffer_info fb_info; map_framebuffer(&fb_info); @@ -30,6 +29,4 @@ void _start() { pixel[1] = y * 256 / fb_info.fb_height; } - end_thread(); - } diff --git a/src/user-libs/calcite/entry.c b/src/user-libs/calcite/entry.c new file mode 100644 index 0000000..f9ac4ba --- /dev/null +++ b/src/user-libs/calcite/entry.c @@ -0,0 +1,25 @@ +/* Calcite, src/user-libs/calcite/entry.c + * Copyright 2025 Benji Dial + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include + +void main(); + +[[noreturn]] void _start() { + main(); + end_thread(); +}