vfork.s

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

S
29
字号
## usr/klibc/arch/m68k/vfork.S## vfork is nasty - there must be nothing at all on the stack above# the stack frame of the enclosing function.##include <asm/unistd.h>	.text	.align	2	.globl	vfork	.type	vfork, @functionvfork:	move.l	(%sp)+, %d1		/* Return address */	move.l	# __NR_vfork, %d0	trap	#0	move.l	%d1, -(%sp)	cmpi.l	#-4095, %d0	blt.l	1f	neg.l	%d0	move.l	%d0, (errno)	moveq	#-1, %d01:	movea.l	%d0, %a0	rts	.size	vfork, .-vfork

⌨️ 快捷键说明

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