Fix proc_kill () race, improve scheduler locking
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m45s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m45s
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user