Rework shared headers

This commit is contained in:
2025-09-05 17:08:40 +02:00
parent 708c53c64d
commit f42c4b7e44
15 changed files with 28 additions and 20 deletions

View File

@ -2,23 +2,15 @@
#include "syscall.h"
#include "proc/proc.h"
#include "spinlock/spinlock.h"
#include "hdrs/errors.h"
#include "errors.h"
#include "util/util.h"
#include "sysdefs/processctl.h"
#define PID_SELF_MAGIC 0x5E1F
enum {
PCTL_KILL = 0,
};
typedef struct {
} ProcessCtl;
int32_t SYSCALL3(sys_processctl, pid1, cmd1, optsptr1) {
uint64_t pid = pid1;
uint64_t cmd = cmd1;
ProcessCtl *pctl = (ProcessCtl *)(void *)optsptr1;
int32_t ret = E_OK;
spinlock_acquire(&PROCS.spinlock);

View File

@ -1,9 +1,9 @@
#include <stdint.h>
#include "syscall.h"
#include "hdrs/errors.h"
#include "errors.h"
#include "kprintf.h"
#include "processctl.h"
#include "hdrs/syscall.h"
#include "sysdefs/syscall.h"
int32_t SYSCALL1(sys_debugprint, string) {
char *p = (char *)string;