xv6-riscv/kernel/proc.c
2023-11-12 14:25:47 -07:00

17 lines
375 B
C

#include "types.h"
#include "param.h"
#include "memlayout.h"
#include "riscv.h"
#include "spinlock.h"
#include "proc.h"
#include "defs.h"
struct proc proc[NPROC];
struct proc *initproc;
// helps ensure that wakeups of wait()ing
// parents are not lost. helps obey the
// memory model when using p->parent.
// must be acquired before any p->lock.
struct spinlock wait_lock;