arch/parisc/kernel/vdso32/restart_syscall.S

Source file repositories/reference/linux-study-clean/arch/parisc/kernel/vdso32/restart_syscall.S

File Facts

System
Linux kernel
Corpus path
arch/parisc/kernel/vdso32/restart_syscall.S
Extension
.S
Size
647 bytes
Lines
33
Domain
Architecture Layer
Bucket
arch/parisc
Inferred role
Architecture Layer: syscall or user/kernel boundary
Status
core 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 <asm/unistd.h>
#include <asm/vdso.h>

#include <linux/linkage.h>

	.text

ENTRY_CFI(__kernel_restart_syscall)
	/*
	 * Setup a trampoline to restart the syscall
	 * with __NR_restart_syscall
	 */

	/* load return pointer */
#if defined(__VDSO64__)
	ldd	0(%sp), %r31
#elif defined(__VDSO32__)
	ldw	0(%sp), %r31
#endif

	be	0x100(%sr2, %r0)
	ldi	__NR_restart_syscall, %r20

ENDPROC_CFI(__kernel_restart_syscall)

Annotation

Implementation Notes