1*321Sbill /* machdep.c 1.1 06/28/80 */ 2*321Sbill 3*321Sbill #include "../h/param.h" 4*321Sbill #include "../h/mtpr.h" 5*321Sbill 6*321Sbill /*ARGSUSED*/ 7*321Sbill /*VARARGS1*/ 8*321Sbill mtpr(regno, value) 9*321Sbill { 10*321Sbill 11*321Sbill asm(" mtpr 8(ap),4(ap)"); 12*321Sbill } 13*321Sbill 14*321Sbill /*ARGSUSED*/ 15*321Sbill mfpr(regno) 16*321Sbill { 17*321Sbill 18*321Sbill asm(" mfpr 4(ap),r0"); 19*321Sbill #ifdef lint 20*321Sbill return (0); 21*321Sbill #endif 22*321Sbill } 23*321Sbill 24*321Sbill /* 25*321Sbill * Copy bytes within kernel 26*321Sbill */ 27*321Sbill /*ARGSUSED*/ 28*321Sbill bcopy(from, to, count) 29*321Sbill caddr_t from, to; 30*321Sbill unsigned count; 31*321Sbill { 32*321Sbill 33*321Sbill asm(" movc3 12(ap),*4(ap),*8(ap)"); 34*321Sbill } 35