Annotation of researchv9/cmd/adb/null/regs.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * code to keep track of registers
                      3:  */
                      4: 
                      5: #include "defs.h"
                      6: #include "regs.h"
                      7: 
                      8: /*
                      9:  * the following are needed only to
                     10:  * make registers `addressable'
                     11:  * which is needed only so we can
                     12:  * examine register variables
                     13:  */
                     14: 
                     15: ADDR raddr[MAXREG - MINREG + 1];
                     16: int roffs[MAXREG - MINREG + 1];
                     17: 
                     18: /*
                     19:  * get/put registers
                     20:  * in our saved copies
                     21:  */
                     22: 
                     23: TREG
                     24: rget(r)
                     25: {
                     26: 
                     27:        error("panic: rget");
                     28:        /* NOTREACHED */
                     29: }
                     30: 
                     31: rput(r, v)
                     32: TREG v;
                     33: {
                     34: 
                     35:        error("panic: rput");
                     36:        /* NOTREACHED */
                     37: }
                     38: 
                     39: 
                     40: /*
                     41:  * print the registers
                     42:  */
                     43: 
                     44: printregs(c)
                     45: char c;
                     46: {
                     47: }
                     48: 
                     49: /*
                     50:  * translate a name to a magic register offset
                     51:  * the latter useful in rget/rput
                     52:  */
                     53: 
                     54: int
                     55: rname(n)
                     56: char *n;
                     57: {
                     58: 
                     59:        return (BADREG);
                     60: }
                     61: 
                     62: rrest()
                     63: {
                     64: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.