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

📄 vecttbl.htm

📁 mips架构的bootloader,99左右的版本 但源代码现在没人更新了
💻 HTM
字号:
		<title>PMON Vector Table</title>		<h1 align=center>PMON Vector Table</h1><!--INDEX "PMON Vector Table" -->The vector table allows a client program to access a number oftarget-dependent services provided by the PROM Monitor. The linkagemechanism for all these services is to jump to an address obtained fromthe vector table. For example,<p><pre>		li	t0,TBLBASE		lw	t0,OFFSET(t0)		j	t0</pre>Where <samp>TBLBASE</samp> is 0xa0c00200 for the ATMizer-I, and0xbfc00200 for all other processors. <samp>OFFSET</samp> is obtained from the table below.<p><!--INDEX crt1 crt0 mips.s "pmcc command" -->The following table shows the services that areprovided, the arguments that are passed to each service function, andthe table offset for each service. The declaration for vector table itself is locatedin the file <a href="../pmon/mips.s">pmon/mips.s</a>. Normally anapplication establishes a connection to these services by linkingin the file <a href="../lib/crt1.s">lib/crt1.s</a>. This routineis automatically linked with your application when you use the<a href="tools/pmcc.htm">pmcc</a> command.<p><center><table border cellpadding=5><caption><h3>PROM Monitor Vector Table</h3></caption><tr><th>Offset</th><th>Function</th><th>Usage</th></tr><tr><td valign=top>0</td><td valign=top>read(int fd, char *buf, int size)</td><td>Read specified number of bytes into buf. Returns number ofbytes read.</td></tr><tr><td valign=top>4</td><td valign=top>write(int fd, char *buf, int size)</td><td>Write specified number of bytes from buf. Returns number ofbytes written.</td></tr><tr><td>8</td><td>int open(char *name [,int mode])</td><td>Open a device. Returns file descriptor.</td></tr><tr><td>12</td><td>close(int fd)</td><td>Close a file descriptor.</td></tr><tr><td>16</td><td>ioctl(int fd, int request, arg)</td><td>Perform I/O control operation.</td></tr><tr><td>20</td><td>printf(char *fmtstr, arg...)</td><td>Print formatted to stdout.</td></tr><tr><td valign=top>24</td><td valign=top>vsprintf(char *dst, char *fmtstr, arglist)</td><td>Write formatted string to dst using arglist. used by printf.</td></tr><tr><td>28</td><td>ttctl(int fd, int op, arg...)</td><td>Perform terminal specific operations.</td></tr><tr><td>32</td><td>exit(int status)</td><td>Client exit to PMON.</td></tr><tr><td valign=top>36</td><td valign=top>char *getenv(char *name)</td><td>Return a pointer to the value of the named environment variable. Returnzero if not found.</td></tr><tr><td valign=top>40</td><td valign=top>onintr(int code, long *dat)</td><td>Connect interrupt handler to specified exception code. </td></tr><tr><td valign=top>44</td><td>flush_cache(ICACHE|DCACHE)</td><td valign=top>Flush the selected cache.</td></tr><tr><td valign=top>48</td><td valign=top>_exception()</td><td>Transfer control to PMON's exception handler.</td></tr><tr><td valign=top>52</td><td valign=top>_fpstatesz()</td><td>Return size of fp state. Requires fp emulation.</td></tr><tr><td valign=top>56</td><td valign=top>_fpinit()</td><td>Initialize the fp emulation package. Standard fp emulation only.</td></tr><tr><td valign=top>60</td><td valign=top>_fpstate()</td><td>Return pointer to fp state. Requires fp emulation.</td></tr><tr><td valign=top>64</td><td valign=top>cop1()</td><td>Transfer control to PMON's exception handler for fp exceptions.Requires fp emulation.</td></tr><tr><td valign=top>68</td><td valign=top>adr2symoff(char *dst, int value, int width)</td><td valign=top>Convert addr to symbol+offset. Return zero if not found.</td></tr><tr><td valign=top>72</td><td valign=top>sym2adr(long *v, char *label)</td><td valign=top>Find the value of a label. Return zero if not found.</td></tr><tr><td>76</td><td>getclkfreq()</td><td>Return the CPU clock frequency (in MHz)</td></tr><tr><td valign=top>80</td><td valign=top>_clkinit()</td><td>Initialize the clock. Required before getclkfreq().</td></tr></table></center><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 + -