renesas_tcpip_accept.s

来自「T-kernel Tcp/ip Protocol Stack Sample」· S 代码 · 共 64 行

S
64
字号
/*""FILE COMMENT""**************************************************************   System Name : RENESAS T-Engine/micro T-Engine series*   File Name   : renesas_tcpip_accept.S *   Version     : 1.00.00*   Contents    : T-Kernel extended SVC interface library*               : created from tcpip_svcdef.h*   Model       : SH7727 T-Engine*   CPU         : SH7727*   Compiler    : GNU*   OS          : T-Kernel*   note        : The Software is being delivered to you "AS IS" *               : and Renesas,whether explicitly or implicitly makes  *               : no warranty as to its Use or performance. *               : RENESAS AND ITS SUPPLIER DO NOT AND CANNOT WARRANT *               : THE PERFORMANCE OR RESULTS YOU MAY OBTAIN  BY USING *               : THE SOFTWARE. AS TO ANY MATTER INCLUDING WITHOUT *               : LIMITATION NONINFRINGEMENT OF THIRD PARTY RIGHTS,*               : MERCHANTABILITY, INTEGRATION, SATISFACTORY QUALITY, *               : OR FITNESS FOR ANY PARTICULAR PURPOSE.**   Copyright (c) 2004 MITSUBISHI ELECTRIC CORP. All Rights Reserved.*   AND RENESAS TECHNOLOGY CORP. All Rights Reserved.*   AND RENESAS SOLUTIONS CORP. All Rights Reserved.**   history     : 2004.10.04 Ver.1.00.00*""FILE COMMENT END""*********************************************************/#include <machine.h>#include <tk/sysdef.h>#include <tcpip_fn.h>	.text	.balign	2	.globl	Csym(renesas_tcpip_accept)	.type	Csym(renesas_tcpip_accept), @functionCsym(renesas_tcpip_accept):	mov.l	r7, @-r15	mov.l	r6, @-r15	mov.l	r5, @-r15	mov.l	r4, @-r15	mov.l	fno, r0	mov	r15, r4	trapa	#TRAP_SVC	cmp/pz	r0	bf	renesas_tcpip_accept_err	rts	add	#4*4, r15renesas_tcpip_accept_err:	mov.l	L_mask, r7	and	r7, r0	mov.l	L_errno, r7	mov.l	r0, @r7	mov.l	L_retno, r0	rts	add	#4*4, r15	.balign	4fno:	.long	TCPIP_RENESAS_TCPIP_ACCEPT_FNL_errno:	.long	Csym(renesas_tcpip_errno)L_retno:	.long	0xFFFFFFFFL_mask:		.long	0xFFFF

⌨️ 快捷键说明

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