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

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

View File

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