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

📄 syscall.s

📁 klibc精简化的c程序库
💻 S
字号:
/* * arch/arm/syscall.S * * System call common handling */	.type	__syscall_common,#function	.globl	__syscall_common#ifndef __thumb__	/* ARM version - this is executed after the swi, unless	   we are compiled in EABI mode */	.balign	4__syscall_common:#ifdef __ARM_EABI__	ldr	r4, [sp,#16]	ldr	r5, [sp,#20]	ldr	r7, [lr]	swi	0#endif        cmn     r0, #4096        rsbcs	r2, r0, #0        ldrcs	r3, 1f        mvncs	r0, #0        strcs	r2, [r3]#ifdef __ARM_EABI__	ldmfd	sp!,{r4,r5,r7,pc}#else	ldmfd	sp!,{r4,r5,pc}#endif	.balign 41:	.word	errno#else	/* Thumb version - must still load r4 and r5 and run swi */	.thumb_func	.balign	2__syscall_common:	mov	r7, lr	ldr	r4, [sp,#16]	sub	r7, #1		/* Remove the Thumb bit */	ldr	r5, [sp,#20]	ldrh	r7, [r7]	swi	0	ldr	r1, 2f	cmp	r0, r1	bcc	1f	ldr	r1, 3f	neg	r2, r0	mov	r0, #1	str	r2, [r1]	neg	r0, r01:	pop	{r4,r5,r7,pc}	.balign	42:	.word	-40953:	.word	errno#endif

⌨️ 快捷键说明

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