DebuggerLockMemory
DebuggerLockMemory Make part of the address space immovable
#include <Memory.h> Memory Manager
Debugger Support Under Virtual Memory
OSErr DebuggerLockMemory( address, count);
void * address is the start address of the range that is to be
locked in RAM
unsigned long count is the size in bytes of that range
returns Error Code; 0=no error
The DebuggerLockMemory function performs the same operations as
LockMemory, except that it leaves data caching enabled on the affected
pages.
address is the start address of the range that is to be locked in RAM
count is the size in bytes of that range
Returns: an operating system Error Code.
noErr (0) No error
paramErr (-50) Error in parameter list
notEnoughMemoryErr (-620) Insufficient physical memory

Notes: If the starting address parameter supplied to the DebuggerLockMemory
function is not on a page boundary, then it is rounded down to the nearest
page boundary. Similarly, if the specified range does not end on a page
boundary, the length parameter is rounded up so that the entire range of
memory is locked.