?? sysdepend.c
字號:
/*""FILE COMMENT""************************************************************** System Name : RENESAS uT-Engine* File Name : sysdepend.c* Version : 1.01.00* Contents : T-Kernel T-Kernel Reference call* Model : RENESAS T-Engine/uT-Engine* CPU : RENESAS T-Engine Series CPU* Compiler : GNU* OS : T-Kernel** note : * $BK\%5%s%W%k%W%m%0%i%`$O$9$Y$F;29M;qNA$G$"$j!"(B* $B$=$NF0:n$rJ]>Z$9$k$b$N$G$O$"$j$^$;$s!#(B* $BK\%5%s%W%k%W%m%0%i%`$O$*5RMM$N%=%U%H%&%(%"3+H/;~$N(B* $B5;=Q;29M;qNA$H$7$F$4MxMQ$/$@$5$$!#(B** Copyright (c) 2004-2006 RENESAS TECHNOLOGY CORP. All Rights Reserved.* AND RENESAS SOLUTIONS CORP. All Rights Reserved.* history : 2004.10.01 ver1.00.00* : 2006.02.01 ver1.01.00*""FILE COMMENT END""*********************************************************/#ifdef _MIC_M32192_#include "shell.h"#include "shelldisp.h"#include <sys/consio.h>const char *openingSystem = "Renesas M32192 micro T-Engine Task Monitor \n";extern W errcode;/* * Uses prfn to display the contents of gr, er, and cr. * prfn must be a printf compatible function. */EXPORT W PrintTaskRegisterNOSTDIO(T_REGS *gr, T_EIT *er, T_CREGS *cr ){/* * PC: 12345678 PSW:12345678 ACC:12345678 12345678 * R0: 12345678 R1: 12345678 R2: 12345678 R3: 12345678 * R4: 12345678 R5: 12345678 R6: 12345678 R7: 12345678 * R8: 12345678 R9: 12345678 R10:12345678 R11:12345678 * R12:12345678 R13:12345678 R14:12345678 SP: 12345678 */ printargs[0] = (VP)er->pc; printargs[1] = (VP)er->psw; printargs[2] = (VP)gr->acch; printargs[3] = (VP)gr->accl; convertstring(strstrstr,"PC: %08x PSW:%08x ACC:%08x %08x\n",printargs); DSP; printargs[0] = (VP)gr->r[0]; printargs[1] = (VP)gr->r[1]; printargs[2] = (VP)gr->r[2]; printargs[3] = (VP)gr->r[3]; convertstring(strstrstr,"R0: %08x R1: %08x R2: %08x R3: %08x\n",printargs); DSP; printargs[0] = (VP)gr->r[4]; printargs[1] = (VP)gr->r[5]; printargs[2] = (VP)gr->r[6]; printargs[3] = (VP)gr->r[7]; convertstring(strstrstr,"R4: %08x R5: %08x R6: %08x R7: %08x\n",printargs); DSP; printargs[0] = (VP)gr->r[8]; printargs[1] = (VP)gr->r[9]; printargs[2] = (VP)gr->r[10]; printargs[3] = (VP)gr->r[11]; convertstring(strstrstr,"R8: %08x R9: %08x R10:%08x R11:%08x\n",printargs); DSP; printargs[0] = (VP)gr->r[12]; printargs[1] = (VP)gr->r[13]; printargs[2] = (VP)gr->r[14]; printargs[3] = (VP)cr->sp; convertstring(strstrstr,"R12:%08x R13:%08x R14:%08x SP: %08x\n",printargs); DSP; return 5; /* Number of display rows */}const char systeminfomsg[] = { "T-Kernel : 1.02.01(open-source/build:060201)\n" "CPU : M32192 160MHz\n" "FlashMemory(Internal) : 0000 0000 - 000F FFFF : 1MB\n" " : 0000 0000 - 0000 02FF : Vector table\n" " : 0000 0300 - 0000 04FF : SystemCommonInfo Area\n" " : 0003 0000 - 0003 FFFF : T-Monitor Area\n" " : 0004 0000 - 0004 FFFF : ROM Info/ System Info \n" " : 0005 0000 - 0006 FFFF : T-Kernel Area\n" "SRAM(Outer) : 0010 0000 - 001F FFFF : 1MB\n" " : 0010 0000 - 0017 FFFF : System Area\n" "RAM(Inner) : 0080 4000 - 0082 FFFF : 176KB\n"};/*""FUNC COMMENT""******************************************************* * ID : X.Y.Z * Abstructs : "REG" command *----------------------------------------------------------------------- * Include : *----------------------------------------------------------------------- * Definition : void REG_cmd() *----------------------------------------------------------------------- * Function : "REG" command exec function *----------------------------------------------------------------------- * Argument : None *----------------------------------------------------------------------- * Return : None *----------------------------------------------------------------------- * Input : RegTable *regtable; register stack * : int argcnt; * Output : W errcode; error code *----------------------------------------------------------------------- * Used Func : printBreakRegisters() * : setBreakRegisters() *----------------------------------------------------------------------- * Notice : None *""FUNC COMMENT END""***************************************************/void REG_cmd(){ errcode = ER_NOSUPPORT;}void BREAKSET_cmd(){ errcode = ER_NOSUPPORT;}void BREAKCLR_cmd(){ errcode = ER_NOSUPPORT;}void DISASM_cmd(){ errcode = ER_NOSUPPORT;}#endif // _MIC_M32192_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -