scheduler: continue rework

This commit is contained in:
Matheus
2025-08-20 22:00:25 -03:00
parent 5098c09f26
commit 136c86354c
26 changed files with 348 additions and 154 deletions
+1
View File
@@ -5,6 +5,7 @@
#include <kernel/interrupt.h>
#include <kernel/jobctl.h>
#include <kernel/interrupt.h>
#include <arch/cpu.h>
syscallret_t syscall_fork(context_t *ctx) {
syscallret_t ret = {
+1
View File
@@ -1,6 +1,7 @@
#include <kernel/abi.h>
#include <kernel/syscalls.h>
#include <kernel/cred.h>
#include <arch/cpu.h>
syscallret_t syscall_getresgid(context_t *, gid_t *gidp, gid_t *egidp, gid_t *sgidp) {
syscallret_t ret = {
+1
View File
@@ -1,6 +1,7 @@
#include <kernel/abi.h>
#include <kernel/syscalls.h>
#include <kernel/cred.h>
#include <arch/cpu.h>
syscallret_t syscall_getresuid(context_t *, uid_t *uidp, uid_t *euidp, uid_t *suidp) {
syscallret_t ret = {
+1
View File
@@ -1,5 +1,6 @@
#include <kernel/syscalls.h>
#include <kernel/scheduler.h>
#include <arch/cpu.h>
syscallret_t syscall_gettid(context_t *) {
syscallret_t ret = {
+1
View File
@@ -1,6 +1,7 @@
#include <kernel/syscalls.h>
#include <kernel/file.h>
#include <kernel/vfs.h>
#include <arch/cpu.h>
syscallret_t syscall_ioctl(context_t *, int fd, unsigned long request, void *arg) {
syscallret_t ret = {
+1 -1
View File
@@ -1,6 +1,6 @@
#include <kernel/syscalls.h>
#include <kernel/alloc.h>
#include <arch/cpu.h>
syscallret_t syscall_linkat(context_t *, int olddirfd, char *uoldpath, int newdirfd, char *unewpath, int flags, int type) {
syscallret_t ret = {
+1
View File
@@ -2,6 +2,7 @@
#include <kernel/scheduler.h>
#include <kernel/cmdline.h>
#include <kernel/alloc.h>
#include <arch/cpu.h>
syscallret_t syscall_newthread(context_t *, void *entry, void *stack) {
syscallret_t ret = {
+1
View File
@@ -1,6 +1,7 @@
#include <kernel/syscalls.h>
#include <kernel/file.h>
#include <kernel/vfs.h>
#include <arch/cpu.h>
#include <errno.h>
#define SEEK_SET 0
+1
View File
@@ -1,6 +1,7 @@
#include <kernel/abi.h>
#include <kernel/syscalls.h>
#include <kernel/cred.h>
#include <arch/cpu.h>
syscallret_t syscall_setresgid(context_t *, gid_t gid, gid_t egid, gid_t sgid) {
syscallret_t ret;
+1
View File
@@ -1,6 +1,7 @@
#include <kernel/abi.h>
#include <kernel/syscalls.h>
#include <kernel/cred.h>
#include <arch/cpu.h>
syscallret_t syscall_setresuid(context_t *, uid_t uid, uid_t euid, uid_t suid) {
syscallret_t ret;
+1
View File
@@ -1,5 +1,6 @@
#include <kernel/syscalls.h>
#include <mutex.h>
#include <arch/cpu.h>
syscallret_t syscall_ftruncate(context_t *, int fd, size_t size) {
syscallret_t ret = {
+1
View File
@@ -2,6 +2,7 @@
#include <kernel/vfs.h>
#include <kernel/file.h>
#include <errno.h>
#include <arch/cpu.h>
syscallret_t syscall_write(context_t *context, int fd, void *buffer, size_t size) {
syscallret_t ret = {