coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
barrier.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause */
2
3
#ifndef __ARCH_BARRIER_H_
4
#define __ARCH_BARRIER_H__
5
6
static
inline
void
mb
(
void
) {
asm
volatile
(
"fence"
); }
7
static
inline
void
rmb
(
void
) {
asm
volatile
(
"fence"
); }
8
static
inline
void
wmb
(
void
) {
asm
volatile
(
"fence"
); }
9
10
#define barrier() { asm volatile ("fence"
::: "memory"); }
11
12
#endif
/* __ARCH_BARRIER_H__ */
wmb
static void wmb(void)
Definition:
barrier.h:8
mb
static void mb(void)
Definition:
barrier.h:6
rmb
static void rmb(void)
Definition:
barrier.h:7
src
arch
riscv
include
arch
barrier.h
Generated by
1.9.1