tmsvc.h

来自「日本著名的的嵌入式实时操作系统T-Kernel的源码及用户手册。」· C头文件 代码 · 共 50 行

H
50
字号
/* *---------------------------------------------------------------------- *    T-Kernel * *    Copyright (C) 2004 by Ken Sakamura. All rights reserved. *    T-Kernel is distributed under the T-License. *---------------------------------------------------------------------- * *    Version:   1.01.00 *    Released by T-Engine Forum(http://www.t-engine.org) at 2004/6/28. * *---------------------------------------------------------------------- *//* *	@(#)tmsvc.h (libtm/SH7727) * *	T-Engine/SH7727 definitions * *	* Used by assembler  */#include <tk/sysdef.h>/* * T-Monitor service call  */.macro _TMCALL func, fno	.text	.balign	2	.globl	Csym(\func)	.type	Csym(\func), @functionCsym(\func):  .if \fno < 128	mov	#\fno, r0	trapa	#TRAP_MONITOR	rts	nop  .else	mov.l	fno_\func, r0	trapa	#TRAP_MONITOR	rts	nop		.balign	4    fno_\func:	.long	\fno  .endif.endm#define	TMCALL(func, fno)	_TMCALL func, fno

⌨️ 快捷键说明

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