Rewrite init app in C, introduce MSL (MOP3 System Library)
All checks were successful
Build documentation / build-and-deploy (push) Successful in 35s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 35s
This commit is contained in:
1
libmsl/m/.gitignore
vendored
Normal file
1
libmsl/m/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.o
|
||||
10
libmsl/m/proc.c
Normal file
10
libmsl/m/proc.c
Normal 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
8
libmsl/m/proc.h
Normal 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
3
libmsl/m/src.mk
Normal file
@@ -0,0 +1,3 @@
|
||||
c += m/proc.c
|
||||
|
||||
o += m/proc.o
|
||||
11
libmsl/m/syscall.h
Normal file
11
libmsl/m/syscall.h
Normal 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
|
||||
Reference in New Issue
Block a user