Reorganize libmsl

This commit is contained in:
2026-02-21 11:52:33 +01:00
parent 23d6d443df
commit b43127e023
13 changed files with 13 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
#pragma clang optimize off
#include <liballoc.h>
#include <m/system.h>
#include <system.h>
#define LIBALLOC_MUTEX 500

View File

@@ -1,6 +1,6 @@
#include <stdint.h>
#include <kb.h>
#include <m/system.h>
#include <system.h>
#include <m/kb_device.h>
#include <m/status.h>

1
libmsl/.gitignore vendored
View File

@@ -1,3 +1,4 @@
*.o
*.json
docs/
.cache/

View File

@@ -1,6 +1,6 @@
#include <liballoc.h>
#include <m/system.h>
#include <stdint.h>
#include <system.h>
extern volatile uint8_t __bss_start[];
extern volatile uint8_t __bss_end[];

1
libmsl/m/.gitignore vendored
View File

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

View File

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

View File

@@ -1,3 +1,6 @@
include $(platform)/src.mk
include init/src.mk
include m/src.mk
c += system.c
o += system.o

View File

@@ -1,7 +1,7 @@
#include <m/syscall.h>
#include <m/system.h>
#include <stddef.h>
#include <stdint.h>
#include <syscall.h>
#include <system.h>
#define do_syscall1(id, a1, a2, a3, a4, a5, a6, ...) \
syscall (id, (uintptr_t)a1, (uintptr_t)a2, (uintptr_t)a3, (uintptr_t)a4, (uintptr_t)a5, \

View File

@@ -1,9 +1,9 @@
#include <liballoc.h>
#include <m/status.h>
#include <m/system.h>
#include <process.h>
#include <stddef.h>
#include <stdint.h>
#include <system.h>
int process_spawn (process_func_t func, void* argument_ptr) {
void* stack = malloc (STACK_SIZE);

View File

@@ -1,7 +1,7 @@
#ifndef _LIBPROCESS_PROCESS_PROCESS_H
#define _LIBPROCESS_PROCESS_PROCESS_H
#include <m/system.h>
#include <system.h>
/* Size of process' stack */
#define STACK_SIZE (256 * PAGE_SIZE)

View File

@@ -1,5 +1,5 @@
#include <m/system.h>
#include <stddef.h>
#include <system.h>
#include <terminal.h>
void terminal_print (const char* string, size_t len) {