arch/xtensa/lib/bswapdi2.S

Source file repositories/reference/linux-study-clean/arch/xtensa/lib/bswapdi2.S

File Facts

System
Linux kernel
Corpus path
arch/xtensa/lib/bswapdi2.S
Extension
.S
Size
399 bytes
Lines
23
Domain
Architecture Layer
Bucket
arch/xtensa
Inferred role
Architecture Layer: exported/initcall integration point
Status
integration 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

#include <linux/linkage.h>
#include <asm/asmmacro.h>
#include <asm/core.h>

ENTRY(__bswapdi2)

	abi_entry_default
	ssai	8
	srli	a4, a2, 16
	src	a4, a4, a2
	src	a4, a4, a4
	src	a4, a2, a4
	srli	a2, a3, 16
	src	a2, a2, a3
	src	a2, a2, a2
	src	a2, a3, a2
	mov	a3, a4
	abi_ret_default

ENDPROC(__bswapdi2)
EXPORT_SYMBOL(__bswapdi2)

Annotation

Implementation Notes