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

📄 pmonlim.htm

📁 mips架构的bootloader,99左右的版本 但源代码现在没人更新了
💻 HTM
字号:
<title>PMON Limitations</title><h1 align=center>PMON Limitations</h1><!--INDEX "PMON limitations" --><!--INDEX "k0 register" "k1 register" "Breakpoints in exception handlers" -->When the target system is halted at a breakpoint, it's possible to savethe contents of most general purpose registers. However, in this scheme,the contents of two general purpose registers must besacrificed; two registers are required for use by the PMON codethat extracts the contents of the other general purpose registers. Theregisters chosen are k0 and k1 because those are the only two registersthat are guaranteed (by convention) to not contain useful values wheninterrupts are enabled.  Users shouldkeep in mind that the contents of these registers at the time of abreakpoint are therefore not available. <p>It should also be noted that PMON makes use of the CPU'sexception handling mechanism whenever a breakpoint occurs. Therefore,care must be taken in debugging exception handlers, to ensure that anynecessary machine state is saved before a debug exception may occur. Inparticular, the EPC (Exception Program Counter), and SR (StatusRegister) must be saved, along with any other registers which may beused by the handler.<p>In practice, this means that breakpoints or single-stepping may safelybe used within the body of an exception handler, provided it is writtenin such a way that all necessary state is saved as its initial actionon entry. However neither of these features may be used during thefirst few instructions of the handler; these must be allowed tocomplete the task of saving essential machine state to the stack. <p></dl><p><hr><b>Navigation:</b> <a href="index.htm">Document Home</a> | <a href="doctoc.htm">Document Contents</a> | <a href="docindex.htm">Document Index</a> <p>

⌨️ 快捷键说明

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