1*23232Smckusick /* 2*23232Smckusick * Copyright (c) 1982 Regents of the University of California. 3*23232Smckusick * All rights reserved. The Berkeley software License Agreement 4*23232Smckusick * specifies the terms and conditions for redistribution. 5*23232Smckusick * 6*23232Smckusick * @(#)machdep.c 6.2 (Berkeley) 06/08/85 7*23232Smckusick */ 8321Sbill 9321Sbill #include "../h/param.h" 10321Sbill 119186Ssam #include "../vax/mtpr.h" 129186Ssam 13321Sbill /*ARGSUSED*/ 14321Sbill /*VARARGS1*/ 15321Sbill mtpr(regno, value) 16321Sbill { 17321Sbill 18321Sbill asm(" mtpr 8(ap),4(ap)"); 19321Sbill } 20321Sbill 21321Sbill /*ARGSUSED*/ 22321Sbill mfpr(regno) 23321Sbill { 24321Sbill 25321Sbill asm(" mfpr 4(ap),r0"); 26321Sbill #ifdef lint 27321Sbill return (0); 28321Sbill #endif 29321Sbill } 30321Sbill 31321Sbill /* 32321Sbill * Copy bytes within kernel 33321Sbill */ 34321Sbill /*ARGSUSED*/ 35321Sbill bcopy(from, to, count) 36321Sbill caddr_t from, to; 37321Sbill unsigned count; 38321Sbill { 39321Sbill 40321Sbill asm(" movc3 12(ap),*4(ap),*8(ap)"); 41321Sbill } 42