Fix proc_kill () race, improve scheduler locking
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m45s

This commit is contained in:
2026-01-01 16:59:04 +01:00
parent 7f53ede2ab
commit 3bcbdb5ec4
2 changed files with 42 additions and 24 deletions

View File

@@ -11,6 +11,12 @@
#include <amd64/proc.h> /* USTACK_SIZE */
#endif
/// Process is ready to run
#define PROC_READY 0
/// Process marked garbage collection
#define PROC_DEAD 1
struct cpu;
struct proc_mapping {
@@ -30,6 +36,7 @@ struct proc {
spin_lock_t lock;
struct cpu* cpu;
struct procw* procw; /* link to it's global struct */
atomic_int state;
};
/*