tools/testing/selftests/arm64/signal/sve_helpers.h

Source file repositories/reference/linux-study-clean/tools/testing/selftests/arm64/signal/sve_helpers.h

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/arm64/signal/sve_helpers.h
Extension
.h
Size
521 bytes
Lines
35
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __SVE_HELPERS_H__
#define __SVE_HELPERS_H__

#include <stdbool.h>

#define VLS_USE_SVE	false
#define VLS_USE_SME	true

extern unsigned int vls[];
extern unsigned int nvls;

int sve_fill_vls(bool use_sme, int min_vls);

static inline uint64_t get_svcr(void)
{
	uint64_t val;

	asm volatile (
		"mrs	%0, S3_3_C4_C2_2\n"
		: "=r"(val)
		:
		: "cc");

	return val;
}

#endif

Annotation

Implementation Notes