|
|
1.1 root 1: /* machdep.c 4.2 81/03/15 */
2: /* Tahoe version, November 1982 */
3:
4: #include "../h/param.h"
5: #include "../machine/mtpr.h"
6:
7: /*ARGSUSED*/
8: /*VARARGS1*/
9: mtpr(value, regno)
10: {
11:
12: asm(" mtpr 4(fp),8(fp)");
13: }
14:
15: /*ARGSUSED*/
16: mfpr(regno)
17: {
18:
19: asm(" mfpr 4(fp),r0");
20: #ifdef lint
21: return (0);
22: #endif
23: }
24:
25: /*
26: * Copy bytes within kernel
27: */
28: /*ARGSUSED*/
29: bcopy(from, to, count)
30: caddr_t from, to;
31: unsigned count;
32: {
33:
34: asm(" pushl r0; pushl r1; pushl r2");
35: asm(" movl 4(fp),r0; movl 8(fp),r1; movl 12(fp),r2");
36: asm(" movblk");
37: asm(" movl (sp)+,r2; movl (sp)+,r1; movl (sp)+,r0");
38: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.