123232Smckusick /*
229303Smckusick * 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*45803Sbostic * @(#)machdep.c 7.3 (Berkeley) 12/16/90
723232Smckusick */
8321Sbill
9*45803Sbostic #include "sys/param.h"
10321Sbill
11*45803Sbostic #include "../include/mtpr.h"
129186Ssam
13321Sbill /*ARGSUSED*/
14321Sbill /*VARARGS1*/
mtpr(regno,value)15321Sbill mtpr(regno, value)
16321Sbill {
17321Sbill
18321Sbill asm(" mtpr 8(ap),4(ap)");
19321Sbill }
20321Sbill
21321Sbill /*ARGSUSED*/
mfpr(regno)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*/
bcopy(from,to,count)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