This sample program determines the correct page size to use for this CPU
and proceeds to create a 1-page buffer object within a 2-page dynamically
allocated memory area. It returns the buffer object ID and then HIBERs,
on the assumption someone wants to look at memory with SDA.On image
exit the buffer object is automatically run down.
This should work on VAX and Alpha.
» sample program (pagebuf.c)
|