|
|
1.1 ! root 1: #include "../h/param.h" ! 2: #include "../h/mtpr.h" ! 3: ! 4: /*ARGSUSED*/ ! 5: /*VARARGS1*/ ! 6: mtpr(regno, value) ! 7: { ! 8: ! 9: asm(" mtpr 8(ap),4(ap)"); ! 10: } ! 11: ! 12: /*ARGSUSED*/ ! 13: mfpr(regno) ! 14: { ! 15: ! 16: asm(" mfpr 4(ap),r0"); ! 17: #ifdef lint ! 18: return (0); ! 19: #endif ! 20: } ! 21: ! 22: /* ! 23: * Copy bytes within kernel ! 24: */ ! 25: /*ARGSUSED*/ ! 26: bcopy(from, to, count) ! 27: caddr_t from, to; ! 28: unsigned count; ! 29: { ! 30: ! 31: asm(" movc3 12(ap),*4(ap),*8(ap)"); ! 32: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.