⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crt0.s

📁 linux下用PCMCIA无线网卡虚拟无线AP的程序源码
💻 S
字号:
/* * libc/sysdeps/linux/v850/crt0.S -- Initial program entry point for linux/v850 * *  Copyright (C) 2001  NEC Corporation *  Copyright (C) 2001  Miles Bader <miles@gnu.org> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License.  See the file COPYING.LIB in the main * directory of this archive for more details. *  * Written by Miles Bader <miles@gnu.org> */#include <clinkage.h>/* Upon entry, the stack contains the following data:	argc, argv[0], ..., argv[argc-1], 0, envp[0], ..., 0*/	.textC_ENTRY(start):		ld.w	0[sp], r6		// Arg 0: argc	addi	4, sp, r7		// Arg 1: argv	mov	r7, r8			// Arg 2: envp	mov	r6, r10			// skip argc elements to get envp start1:	add	4, r8	add	-1, r10	bp	1b	// Zero bss area, since we can't rely upon any loader to do so	mov	hilo(C_SYMBOL_NAME(edata)), ep	mov	hilo(C_SYMBOL_NAME(end)), r102:	sst.w	r0, 0[ep]	add	4, ep	cmp	ep, r10	bne	2b	// Load CTBP register	mov	hilo(C_SYMBOL_NAME(_ctbp)), r19	ldsr	r19, ctbp	// Load GP	mov	hilo(C_SYMBOL_NAME(_gp)), gp	// call uclibc's startup routine	jarl	C_SYMBOL_NAME(__uClibc_main), lp	// should never get here....	jr	C_SYMBOL_NAME(abort)

⌨️ 快捷键说明

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