xv6-riscv-rust/spinlock.h

6 lines
62 B
C

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