1*45699Sbostic /* Aput_byte.c 1.2 90/12/04 */ 229628Ssam 3*45699Sbostic #include "align.h" 429628Ssam 529628Ssam put_byte (infop, byte, where) 629628Ssam process_info *infop; 729628Ssam char *where; 829628Ssam long byte; 929628Ssam /* 1029628Ssam /* Put the byte at the given address in memory. 1129628Ssam /* Caveat: It's quite difficult to find a pte reference 1229628Ssam /* fault. So I took the easy way out and just signal 1329628Ssam /* an illegal access. 1429628Ssam /* 1529628Ssam /**************************************************/ 1629628Ssam { 1729628Ssam register long code; 1829628Ssam 1929628Ssam code = writeable(infop, where, 1); 2029628Ssam if ( code == TRUE ) { 2129628Ssam *where = byte; 2229628Ssam } else exception (infop, ILL_ACCESS, where, code); 2329628Ssam } 24