Rename libmsl to libsystem
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m6s

This commit is contained in:
2026-02-21 12:00:59 +01:00
parent b43127e023
commit 7601ea68e2
28 changed files with 29 additions and 30 deletions

1
libsystem/init/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.o

View File

@@ -0,0 +1,27 @@
#include <liballoc.h>
#include <stdint.h>
#include <system.h>
extern volatile uint8_t __bss_start[];
extern volatile uint8_t __bss_end[];
extern void app_main (void);
static void clear_bss (void) {
uint8_t* p = (uint8_t*)__bss_start;
while (p < __bss_end) {
*p++ = 0;
}
}
void __premain (void) {
clear_bss ();
liballoc_init ();
app_main ();
liballoc_deinit ();
quit ();
}

3
libsystem/init/src.mk Normal file
View File

@@ -0,0 +1,3 @@
c += init/__premain.c
o += init/__premain.o