/sys/tahoealign -> /sys/tahoe/align
[unix-history] / usr / src / sys / tahoe / align / Aput_long.c
CommitLineData
6499767c 1/* Aput_long.c 1.2 90/12/04 */
9097e2a6
SL
2
3
6499767c 4#include "align.h"
9097e2a6
SL
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}