put entry point in calcite library
This commit is contained in:
parent
0b4fdb5384
commit
f409903f55
2 changed files with 26 additions and 4 deletions
|
|
@ -17,8 +17,7 @@
|
||||||
|
|
||||||
#include <calcite/calcite.h>
|
#include <calcite/calcite.h>
|
||||||
|
|
||||||
[[noreturn]]
|
void main() {
|
||||||
void _start() {
|
|
||||||
|
|
||||||
struct framebuffer_info fb_info;
|
struct framebuffer_info fb_info;
|
||||||
map_framebuffer(&fb_info);
|
map_framebuffer(&fb_info);
|
||||||
|
|
@ -30,6 +29,4 @@ void _start() {
|
||||||
pixel[1] = y * 256 / fb_info.fb_height;
|
pixel[1] = y * 256 / fb_info.fb_height;
|
||||||
}
|
}
|
||||||
|
|
||||||
end_thread();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
25
src/user-libs/calcite/entry.c
Normal file
25
src/user-libs/calcite/entry.c
Normal file
|
|
@ -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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <calcite/calcite.h>
|
||||||
|
|
||||||
|
void main();
|
||||||
|
|
||||||
|
[[noreturn]] void _start() {
|
||||||
|
main();
|
||||||
|
end_thread();
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue