Mercurial > hg > Members > mitsuki > xv6_rpi2_port
view uprogs/spinlock.h @ 2:77a5fa9bee07 default tip
add kernel.elf
author | mir3636 |
---|---|
date | Sun, 06 Jan 2019 19:37:16 +0900 |
parents | ed10291ff195 |
children |
line wrap: on
line source
// Mutual exclusion lock. struct spinlock { uint locked; // Is the lock held? // For debugging: char *name; // Name of lock. struct cpu *cpu; // The cpu holding the lock. uint pcs[10]; // The call stack (an array of program counters) // that locked the lock. };