📄 patch.c
字号:
/* *---------------------------------------------------------------------- * 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. * *---------------------------------------------------------------------- *//* * patch.c (VR5500) * System-dependant initialize process */#include <basic.h>#include <tk/tkernel.h>#include "patch.h"#define INTNO_IP0 (63) // IP0/* * Dummy interrupt handler to ignore invalid interrupt */LOCAL void ignore_interrupt( UINT dintno ){}#if USE_SYSDEPEND_PATCH1/* * System-dependant processes (before start_system) */EXPORT void sysdepend_patch1( void ){ T_DINT dint; dint.intatr = TA_HLNG; dint.inthdr = ignore_interrupt; tk_def_int(INTNO_IP0, &dint);}#endif#if USE_SYSDEPEND_PATCH2/* * System-dependant processes (after start_system) */EXPORT void sysdepend_patch2( void ){ /* Do nothing */}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -