|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1982, 1986 Regents of the University of California. ! 3: * All rights reserved. The Berkeley software License Agreement ! 4: * specifies the terms and conditions for redistribution. ! 5: * ! 6: * @(#)machdep.c 7.1 (Berkeley) 6/5/86 ! 7: */ ! 8: ! 9: #include "../h/param.h" ! 10: ! 11: #include "../vax/mtpr.h" ! 12: ! 13: /*ARGSUSED*/ ! 14: /*VARARGS1*/ ! 15: mtpr(regno, value) ! 16: { ! 17: ! 18: asm(" mtpr 8(ap),4(ap)"); ! 19: } ! 20: ! 21: /*ARGSUSED*/ ! 22: mfpr(regno) ! 23: { ! 24: ! 25: asm(" mfpr 4(ap),r0"); ! 26: #ifdef lint ! 27: return (0); ! 28: #endif ! 29: } ! 30: ! 31: /* ! 32: * Copy bytes within kernel ! 33: */ ! 34: /*ARGSUSED*/ ! 35: bcopy(from, to, count) ! 36: caddr_t from, to; ! 37: unsigned count; ! 38: { ! 39: ! 40: asm(" movc3 12(ap),*4(ap),*8(ap)"); ! 41: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.