BSD 4_3_Tahoe development
[unix-history] / usr / src / sys / tahoealign / Aput_byte.c
CommitLineData
c8cccbb7
C
1/* Aput_byte.c 1.1 86/07/20 */
2
3#include "../tahoealign/align.h"
4
5put_byte (infop, byte, where)
6process_info *infop;
7char *where;
8long byte;
9/*
10/* Put the byte at the given address in memory.
11/* Caveat: It's quite difficult to find a pte reference
12/* fault. So I took the easy way out and just signal
13/* an illegal access.
14/*
15/**************************************************/
16{
17 register long code;
18
19 code = writeable(infop, where, 1);
20 if ( code == TRUE ) {
21 *where = byte;
22 } else exception (infop, ILL_ACCESS, where, code);
23}