execle.s

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· S 代码 · 共 39 行

S
39
字号
/*	@(#)execle.s	4.1	(ULTRIX)	7/3/90				      *//* ------------------------------------------------------------------ *//* | Copyright Unpublished, MIPS Computer Systems, Inc.  All Rights | *//* | Reserved.  This software contains proprietary and confidential | *//* | information of MIPS and its suppliers.  Use, disclosure or     | *//* | reproduction is prohibited without the prior express written   | *//* | consent of MIPS.                                               | *//* ------------------------------------------------------------------ *//* $Header: execle.s,v 1.1 87/02/16 11:19:54 dce Exp $ *//* * Copyright 1985 by MIPS Computer Systems, Inc. */#include <mips/regdef.h>#include <mips/asm.h>#include <syscall.h>FRMSIZE	=	20NESTED(execle, FRMSIZE, zero)	subu	sp,FRMSIZE	sw	ra,FRMSIZE-4(sp)	sw	a1,FRMSIZE+4(sp)	sw	a2,FRMSIZE+8(sp)	sw	a3,FRMSIZE+12(sp)	move	a1,sp	addu	a1,FRMSIZE+4	move	a2,a11:	lw	v0,0(a2)	addu	a2,4	bne	v0,zero,1b	lw	a2,0(a2)	jal	execve	lw	ra,FRMSIZE-4(sp)	addu	sp,FRMSIZE	RET		# execle(file, arg1, arg2, ..., 0, env);.end execle

⌨️ 快捷键说明

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