make -B format_kernel
All checks were successful
Build documentation / build-and-deploy (push) Successful in 32s

This commit is contained in:
2026-01-01 20:17:29 +01:00
parent 99bab4ceee
commit 1341dc00d9
5 changed files with 14 additions and 15 deletions

View File

@@ -6,8 +6,8 @@
#include <limine/requests.h> #include <limine/requests.h>
#include <sys/debug.h> #include <sys/debug.h>
#include <sys/mm.h> #include <sys/mm.h>
#include <sys/time.h>
#include <sys/spin.h> #include <sys/spin.h>
#include <sys/time.h>
#include <uacpi/acpi.h> #include <uacpi/acpi.h>
#include <uacpi/status.h> #include <uacpi/status.h>
#include <uacpi/tables.h> #include <uacpi/tables.h>

View File

@@ -1,10 +1,10 @@
#include <aux/elf.h>
#include <libk/std.h> #include <libk/std.h>
#include <libk/string.h> #include <libk/string.h>
#include <sync/spin_lock.h>
#include <mm/pmm.h>
#include <mm/liballoc.h> #include <mm/liballoc.h>
#include <mm/pmm.h>
#include <proc/proc.h> #include <proc/proc.h>
#include <aux/elf.h> #include <sync/spin_lock.h>
struct proc* proc_from_elf (uint8_t* elf_contents) { struct proc* proc_from_elf (uint8_t* elf_contents) {
struct proc* proc = malloc (sizeof (*proc)); struct proc* proc = malloc (sizeof (*proc));

View File

@@ -13,13 +13,13 @@
#include <sync/spin_lock.h> #include <sync/spin_lock.h>
#include <sys/debug.h> #include <sys/debug.h>
#include <sys/mm.h> #include <sys/mm.h>
#include <sys/proc.h>
#include <sys/sched.h> #include <sys/sched.h>
#include <sys/smp.h> #include <sys/smp.h>
#include <sys/proc.h>
#include <sys/spin.h> #include <sys/spin.h>
#if defined(__x86_64__) #if defined(__x86_64__)
#include <amd64/intr_defs.h> #include <amd64/intr_defs.h>
#endif #endif
static struct procw* procs; static struct procw* procs;
@@ -131,9 +131,9 @@ static void proc_register (struct proc* proc) {
spin_unlock (&procs_lock); spin_unlock (&procs_lock);
} }
static struct proc *proc_find_sched (void) { static struct proc* proc_find_sched (void) {
struct proc *start = thiscpu->proc_current; struct proc* start = thiscpu->proc_current;
struct proc *proc = start->next; struct proc* proc = start->next;
for (;;) { for (;;) {
if (proc == NULL) { if (proc == NULL) {
@@ -154,7 +154,7 @@ static struct proc *proc_find_sched (void) {
} }
void proc_sched (void) { void proc_sched (void) {
struct proc *next = NULL; struct proc* next = NULL;
spin_lock (&thiscpu->lock); spin_lock (&thiscpu->lock);

View File

@@ -13,10 +13,9 @@
#endif #endif
/// Process is ready to run /// Process is ready to run
#define PROC_READY 0 #define PROC_READY 0
/// Process marked garbage collection /// Process marked garbage collection
#define PROC_DEAD 1 #define PROC_DEAD 1
struct cpu; struct cpu;

View File

@@ -2,8 +2,8 @@
#define _KERNEL_SYS_SPIN_H #define _KERNEL_SYS_SPIN_H
#if defined(__x86_64__) #if defined(__x86_64__)
extern void amd64_spin (void); extern void amd64_spin (void);
#define spin amd64_spin #define spin amd64_spin
#endif #endif
#endif // _KERNEL_SYS_SPIN_H #endif // _KERNEL_SYS_SPIN_H