need time.h if no user.h
[unix-history] / usr / src / sys / tahoe / align / Aput_long.c
CommitLineData
9097e2a6
SL
1/* Aput_long.c 1.1 86/07/20 */
2
3
4#include "../tahoealign/align.h"
5
6put_longword (infop, longword, where)
7register process_info *infop;
8register char *where;
9register 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}