xv6-riscv-rust/spinlock.h

6 lines
58 B
C

struct spinlock {
uint locked;
uint pc;
int cpu;
};