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

📄 eabi.s

📁 实用的程序代码
💻 S
字号:
/*-----------------------------------------------------------------------------
//     $Date: 2002/09/16 21:19:30 $
//     $RCSfile: eabi.S,v $
//-----------------------------------------------------------------------------
//
// $xilinx_legal_disclaimer
//
//---------------------------------------------------------------------------*/

	.file	"eabi.S"
	.section ".text"

	 .section ".got2","aw"
	.align	2
.LCTOC1 = .

/* Table of addresses */
.Lsda = .-.LCTOC1
	.long _SDA_BASE_	/* read/write small data area */

.Lsda2 = .-.LCTOC1
	.long _SDA2_BASE_	/* read-only small data area */

	.text

	.global __eabi
__eabi:	
	lis	11,.LCTOC1@h		/* load address of .LCTOC1 */
	ori	11,11,.LCTOC1@l
	lwz	13,.Lsda(11)		/* load r13 with _SDA_BASE_ address */
	lwz	2,.Lsda2(11)		/* load r2 with _SDA2_BASE_ address */

#ifndef _cplusplus			/* initialization for C++ ? */
	blr				/* no -> return to main */
#else
	.extern atexit
	.extern __atexit
	
	lis	0,atexit@h		/* set up __atexit in eabi-ctors.c */
	ori	0,0,atexit@l
	lis	11,__atexit@h
	ori	11,11,__atexit@l
	stw	0,0(11)
	
	b __do_global_ctors		/* yes -> global constructors */
	trap				/* should never get here */


	.global __init
__init:	blr
	
	.global __fini
__fini:	blr

#endif

⌨️ 快捷键说明

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