xref: /original-bsd/sys/tahoe/align/Aput_long.c (revision c7ce21e7)
1 /*	Aput_long.c	1.1	86/07/20	*/
2 
3 
4 #include	"../tahoealign/align.h"
5 
6 put_longword (infop, longword, where)
7 register	process_info	*infop;
8 register	char		*where;
9 register	long		longword;
10 /*
11 /*	Put the longword at the given address in memory.
12 /*	Caveat: It's quite difficult to find a pte reference
13 /*		fault.  So I took the easy way out and just signal
14 /*		an illegal access.
15 /*
16 /**************************************************/
17 {
18 	register long code;
19 
20 	code = writeable(infop, where, 4);
21 	if ( code == TRUE ) {
22 		*where++ = longword>>24;
23 		*where++ = longword>>16;
24 		*where++ = longword>>8;
25 		*where = longword;
26 	} else exception (infop, ILL_ACCESS, where, code);
27 }
28