123232Smckusick /* 2*29303Smckusick * Copyright (c) 1982, 1986 Regents of the University of California. 323232Smckusick * All rights reserved. The Berkeley software License Agreement 423232Smckusick * specifies the terms and conditions for redistribution. 523232Smckusick * 6*29303Smckusick * @(#)machdep.c 7.1 (Berkeley) 06/05/86 723232Smckusick */ 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