1*45760Sbostic /*- 2*45760Sbostic * Copyright (c) 1986 The Regents of the University of California. 3*45760Sbostic * All rights reserved. 4*45760Sbostic * 5*45760Sbostic * This code is derived from software contributed to Berkeley by 6*45760Sbostic * Computer Consoles Inc. 7*45760Sbostic * 8*45760Sbostic * %sccs.include.redist.c% 9*45760Sbostic * 10*45760Sbostic * @(#)Aput_long.c 7.1 (Berkeley) 12/06/90 11*45760Sbostic */ 1229628Ssam 1345699Sbostic #include "align.h" 1429628Ssam put_longword(infop,longword,where)1529628Ssamput_longword (infop, longword, where) 1629628Ssam register process_info *infop; 1729628Ssam register char *where; 1829628Ssam register long longword; 1929628Ssam /* 2029628Ssam /* Put the longword at the given address in memory. 2129628Ssam /* Caveat: It's quite difficult to find a pte reference 2229628Ssam /* fault. So I took the easy way out and just signal 2329628Ssam /* an illegal access. 2429628Ssam /* 2529628Ssam /**************************************************/ 2629628Ssam { 2729628Ssam register long code; 2829628Ssam 2929628Ssam code = writeable(infop, where, 4); 3029628Ssam if ( code == TRUE ) { 3129628Ssam *where++ = longword>>24; 3229628Ssam *where++ = longword>>16; 3329628Ssam *where++ = longword>>8; 3429628Ssam *where = longword; 3529628Ssam } else exception (infop, ILL_ACCESS, where, code); 3629628Ssam } 37