Name: | »SetPageMode« - Set PMMU mode for a memory block.
| ||||||||||||||||||||
Number: | 1
| ||||||||||||||||||||
Declaration: | ULONG SetPageMode ( ULONG mode, ULONG start_address, ULONG
length );
| ||||||||||||||||||||
Description: | The call SetPageMode sets the PMMU mode for a given block of
memory. The following apply:
Note: The remaining bits are reserved and must be set to zero. For the virtual memory management the SwapInhibit bit is the most meaningful one, since it offers the possibility of protecting given memory blocks from being offloaded to disk. With write-protection of memory blocks it is imperative to note that the memory is subdivided into pages, which form the smallest unit that can be write-protected. One has to ensure that the write-protection does not extend to a block that must not be protected, because it does not belong to the program in question, for instance. | ||||||||||||||||||||
Return value: | The function returns zero on error-free execution. Otherwise a
value is returned in which the bits that could not be manipulated are
set.
| ||||||||||||||||||||
Group: | PMMU functions-handler
| ||||||||||||||||||||
See also: | ClearPageMode GetHdv_inuse GetPageSize pmem_size
PMMUversion vmem_size
|