|
|
1.1 root 1:
2: #include "../machine/alignment.h"
3:
4: put_word (infop, word, where)
5: register process_info *infop;
6: register char *where;
7: register long word;
8: /*
9: /* Put the word at the given address in memory.
10: /* Caveat: It's quite difficult to find a pte reference
11: /* fault. So I took the easy way out and just signal
12: /* an illegal access.
13: /*
14: /**************************************************/
15: {
16: register long code;
17:
18: code = writeable(infop, where, 2);
19: if ( code == TRUE ) {
20: *where = word>>8;
21: *(where+1) = word;
22: } else exception (infop, ILL_ACCESS, where, code);
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.