arch/csky/abiv2/inc/abi/reg_ops.h

Source file repositories/reference/linux-study-clean/arch/csky/abiv2/inc/abi/reg_ops.h

File Facts

System
Linux kernel
Corpus path
arch/csky/abiv2/inc/abi/reg_ops.h
Extension
.h
Size
282 bytes
Lines
17
Domain
Architecture Layer
Bucket
arch/csky
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 __ABI_REG_OPS_H
#define __ABI_REG_OPS_H
#include <asm/reg_ops.h>

static inline unsigned int mfcr_hint(void)
{
	return mfcr("cr31");
}

static inline unsigned int mfcr_ccr2(void)
{
	return mfcr("cr23");
}
#endif /* __ABI_REG_OPS_H */

Annotation

Implementation Notes