|
|
Power 6/32 Unix version 1.21
#include "../machine/alignment.h"
int get_byte (infop, address)
process_info *infop;
char *address;
/*
/* Fetch the byte at the given 'address' from memory.
/* Caveat: It's quite difficult to find a pte reference
/* fault. So I took the easy way out and just signal
/* an illegal access.
/*
/**************************************************/
{
register long code;
code = readable(infop, (long)address, 1);
if ( code == TRUE ) {
return(*address);
} else exception (infop, ILL_ACCESS, address, code);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.