📄 vecttbl
字号:
PMON Vector Table PMON Vector TableThe 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, li t0,TBLBASE lw t0,OFFSET(t0) j t0Where TBLBASE is 0xa0c00200 for the ATMizer-I, and0xbfc00200 for all other processors. OFFSET is obtained from the table below.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 pmon/mips.s. Normally anapplication establishes a connection to these services by linkingin the file lib/crt1.s. This routineis automatically linked with your application when you use thepmcc command.PROM Monitor Vector TableOffsetFunctionUsage0read(int fd, char *buf, int size)Read specified number of bytes into buf. Returns number ofbytes read.4write(int fd, char *buf, int size)Write specified number of bytes from buf. Returns number ofbytes written.8int open(char *name [,int mode])Open a device. Returns file descriptor.12close(int fd)Close a file descriptor.16ioctl(int fd, int request, arg)Perform I/O control operation.20printf(char *fmtstr, arg...)Print formatted to stdout.24vsprintf(char *dst, char *fmtstr, arglist)Write formatted string to dst using arglist. used by printf.28ttctl(int fd, int op, arg...)Perform terminal specific operations.32exit(int status)Client exit to PMON.36char *getenv(char *name)Return a pointer to the value of the named environment variable. Returnzero if not found.40onintr(int code, long *dat)Connect interrupt handler to specified exception code. 44flush_cache(ICACHE|DCACHE)Flush the selected cache.48_exception()Transfer control to PMON's exception handler.52_fpstatesz()Return size of fp state. Requires fp emulation.56_fpinit()Initialize the fp emulation package. Standard fp emulation only.60_fpstate()Return pointer to fp state. Requires fp emulation.64cop1()Transfer control to PMON's exception handler for fp exceptions.Requires fp emulation.68adr2symoff(char *dst, int value, int width)Convert addr to symbol+offset. Return zero if not found.72sym2adr(long *v, char *label)Find the value of a label. Return zero if not found.76getclkfreq()Return the CPU clock frequency (in MHz)80_clkinit()Initialize the clock. Required before getclkfreq().
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -