varsyscall.s

来自「klibc精简化的c程序库」· S 代码 · 共 37 行

S
37
字号
/* * arch/i386/varsyscall.S * * Common tail-handling code for varadic system calls (which always * use the cdecl convention.) * * The arguments are on the stack; the system call number in %eax. */#ifdef	_REGPARM#define ARG(n)	(4*n+20)(%esp)	.text	.align	4	.globl	__syscall_varadic	.type	__syscall_varadic,@function__syscall_varadic:	popl	%eax	pushl	%ebx	pushl	%esi	pushl	%edi	pushl	%ebp	movl	ARG(0),%ebx		# Syscall arguments	movl	ARG(1),%ecx	movl	ARG(2),%edx	movl	ARG(3),%esi	movl	ARG(4),%edi	movl	ARG(5),%ebp	jmp	__syscall_common_tail	.size	__syscall_varadic,.-__syscall_varadic#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?