BSD 4_3_Tahoe development
[unix-history] / usr / src / sys / tahoealign / Aput_word.c
CommitLineData
c8cccbb7
C
1/* Aput_word.c 1.1 86/07/20 */
2
3
4#include "../tahoealign/align.h"
5
6put_word (infop, word, where)
7register process_info *infop;
8register char *where;
9register long word;
10/*
11/* Put the word 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, 2);
21 if ( code == TRUE ) {
22 *where = word>>8;
23 *(where+1) = word;
24 } else exception (infop, ILL_ACCESS, where, code);
25}