1 /* Aput_word.c 1.1 86/07/20 */ 2 3 4 #include "../tahoealign/align.h" 5 6 put_word (infop, word, where) 7 register process_info *infop; 8 register char *where; 9 register 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 } 26