arch/arm64/include/asm/fpu.h

Source file repositories/reference/linux-study-clean/arch/arm64/include/asm/fpu.h

File Facts

System
Linux kernel
Corpus path
arch/arm64/include/asm/fpu.h
Extension
.h
Size
448 bytes
Lines
28
Domain
Architecture Layer
Bucket
arch/arm64
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_FPU_H
#define __ASM_FPU_H

#include <linux/preempt.h>
#include <asm/neon.h>

#define kernel_fpu_available()	cpu_has_neon()

static inline void kernel_fpu_begin(void)
{
	BUG_ON(!in_task());
	preempt_disable();
	kernel_neon_begin(NULL);
}

static inline void kernel_fpu_end(void)
{
	kernel_neon_end(NULL);
	preempt_enable();
}

#endif /* ! __ASM_FPU_H */

Annotation

Implementation Notes