coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spinlock.h File Reference
#include <arch/barrier.h>
#include <arch/smp/atomic.h>
Include dependency graph for spinlock.h:

Go to the source code of this file.

Data Structures

struct  spinlock_t
 

Functions

static void spinlock_lock (spinlock_t *lock)
 
static void spinlock_unlock (spinlock_t *lock)
 

Function Documentation

◆ spinlock_lock()

static void spinlock_lock ( spinlock_t lock)
inlinestatic

Definition at line 13 of file spinlock.h.

References atomic_swap(), barrier, and lock().

Here is the call graph for this function:

◆ spinlock_unlock()

static void spinlock_unlock ( spinlock_t lock)
inlinestatic

Definition at line 20 of file spinlock.h.

References atomic_set, barrier, and lock().

Here is the call graph for this function: