makeiftkse.pl

来自「T-kernel 的extension源代码」· PL 代码 · 共 48 行

PL
48
字号
#! /usr/local/bin/perl## ----------------------------------------------------------------------#     T-Kernel / Standard Extension##     Copyright (C) 2006 by Ken Sakamura. All rights reserved.#     T-Kernel / Standard Extension is distributed #       under the T-License for T-Kernel / Standard Extension.# ----------------------------------------------------------------------##     Version:   1.00.00#     Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11.## ----------------------------------------------------------------------###	makeiftkse.pl##	generate extended SVC interface library for VR5500#sub makelibex{	print LIB <<EndOfExtIfLibBody;#include <machine.h>#include <tk/asm.h>#include <extension/sys/svc/$fn_h>	.text	.balign	4	.globl	Csym(${func})	.type	Csym(${func}), \@functionCsym(${func}):	sd	\$a0, 0*8(\$sp)	sd	\$a1, 1*8(\$sp)	sd	\$a2, 2*8(\$sp)	sd	\$a3, 3*8(\$sp)	move	\$a0, \$sp	li	\$v0, ${prefix}_${Func}_FN	syscall	CALL_SVC	jr	\$raEndOfExtIfLibBody}1;

⌨️ 快捷键说明

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