arch/riscv/include/asm/mmiowb.h

Source file repositories/reference/linux-study-clean/arch/riscv/include/asm/mmiowb.h

File Facts

System
Linux kernel
Corpus path
arch/riscv/include/asm/mmiowb.h
Extension
.h
Size
365 bytes
Lines
16
Domain
Architecture Layer
Bucket
arch/riscv
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _ASM_RISCV_MMIOWB_H
#define _ASM_RISCV_MMIOWB_H

/*
 * "o,w" is sufficient to ensure that all writes to the device have completed
 * before the write to the spinlock is allowed to commit.
 */
#define mmiowb()	RISCV_FENCE(o, w)

#include <linux/smp.h>
#include <asm-generic/mmiowb.h>

#endif	/* _ASM_RISCV_MMIOWB_H */

Annotation

Implementation Notes