Partial exec, environment variables

This commit is contained in:
2026-03-17 19:14:29 +01:00
parent b1648a146a
commit c69ee1b745
9 changed files with 199 additions and 26 deletions

View File

@@ -212,6 +212,18 @@ void proc_register (struct proc* proc, struct cpu* register_cpu, struct reschedu
rctx_insert_cpu (rctx, cpu);
}
void proc_register_partial (struct proc* proc) {
uint64_t fpt, fp;
spin_lock (&proc_tree_lock, &fpt);
spin_lock (&proc->lock, &fp);
rbtree_insert (struct proc, &proc_tree, &proc->proc_tree_link, proc_tree_link, pid);
spin_unlock (&proc->lock, fp);
spin_unlock (&proc_tree_lock, fpt);
}
/* caller holds cpu->lock */
static struct proc* proc_find_sched (struct cpu* cpu) {
uint64_t fp;