⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 paddreg

📁 MIPS处理器的bootloader,龙芯就是用的修改过的PMON2
💻
字号:
		PMON - Adding Registers		Adding RegistersAdding registers to PMON is very simple. You might want to do this inorder to make PMON able to display and modify the registers ofperipheral devices that you have on your own board. For example, if youhave a real-time clock chip that contains 4 registers. You can addthese registers to PMON so that you can display and set them from thePMON command line.The register information is entered into a table that is locatedin the appropriate file in the lib directory. For example, if yourprocessor uses the 4001 core, you should add the registers to thearray c4001_reglist located in the file lib/c4001.c. A fragment of this table is shown below..        {mXc0,mips_cause_def,"C0_CAUSE","CAUSE",13,(F_CP0|F_MIPS)},        {mXmem,0,"M_TIC0","TIC0",M_TMR4001+O_TIC0},        {mXmem,Tmr4003Stat,"M_TSTAT","TSTAT",M_TMR4001+O_TSTAT},Reading from left to right, the field definitions are as follows...  

⌨️ 快捷键说明

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