Rewrite init app in C, introduce MSL (MOP3 System Library)
All checks were successful
Build documentation / build-and-deploy (push) Successful in 35s

This commit is contained in:
2026-01-04 01:11:31 +01:00
parent 2c954a9ca9
commit e077d322f4
57 changed files with 214 additions and 120 deletions

1
libmsl/m/.gitignore vendored Normal file
View File

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

10
libmsl/m/proc.c Normal file
View File

@@ -0,0 +1,10 @@
#include <m/syscall.h>
#include <m/syscall_defs.h>
int m_proc_quit (void) {
return m_syscall (SYS_PROC_QUIT, 0, 0, 0, 0, 0, 0);
}
int m_proc_test (void) {
return m_syscall (SYS_PROC_TEST, 0, 0, 0, 0, 0, 0);
}

8
libmsl/m/proc.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef _LIBMSL_M_PROC_H
#define _LIBMSL_M_PROC_H
int m_proc_quit (void);
int m_proc_test (void);
#endif // _LIBMSL_M_PROC_H

3
libmsl/m/src.mk Normal file
View File

@@ -0,0 +1,3 @@
c += m/proc.c
o += m/proc.o

11
libmsl/m/syscall.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef _LIBMSL_M_SYSCALL_H
#define _LIBMSL_M_SYSCALL_H
#include <m/syscall_defs.h>
#if defined(__x86_64__)
#include <amd64/syscall.h>
#define m_syscall msl_amd64_syscall
#endif
#endif // _LIBMSL_M_SYSCALL_H