makeiftk.pl

来自「uT Kernel os source code for AT91」· PL 代码 · 共 54 行

PL
54
字号
#! /usr/local/bin/perl## ----------------------------------------------------------------------#     micro T-Kernel##     Copyright (C) 2006-2007 by Ken Sakamura. All rights reserved.#     micro T-Kernel is distributed under the micro T-License.# ----------------------------------------------------------------------##     Version:   1.00.00#     Released by T-Engine Forum(http://www.t-engine.org) at 2007/03/26.## ----------------------------------------------------------------------###	makeiftk.pl##	generate interface library for AT9155800A#sub makelib{	print LIB <<EndOfIfLibBody;#include <machine.h>#include <tk/sysdef.h>#include <sys/svc/$fn_h>#include "utk_config.h"#if USE_TRAP || (USE_DBGSPT && USE_HOOK_TRACE)	.text	.balign	4	.globl	Csym(${func})	.type	Csym(${func}), %functionCsym(${func}):	stmfd	sp!, {r4}	add	r4, sp, #4	stmfd	sp!, {lr}	ldr	ip, =TFN_${Func}#if USE_TRAP	swi	SWI_SVC#else	bl	Csym(knl_call_entry)#endif	ldmfd	sp!, {lr}	ldmfd	sp!, {r4}	bx	lr#endifEndOfIfLibBody}1;

⌨️ 快捷键说明

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