OSDisableCodeExecOnMEM1Hi8MB

Syntax

#include <revolution/os.h>

void OSDisableCodeExecOnMEM1Hi8MB( void );

Arguments

None.

Return Values

None.

Description

Prohibits the execution of code located in the last half (8MB) of internal main memory (MEM1 region).

Use this function when you know ahead of time that code is not located in the last half (8MB) of MEM1 for an application.

Use of this function results in an ISI exception if an attempt is made to execute code in the prohibited region. This behavior prevents the illegal execution of code at an address unexpected by the application.

If you want to prepare your own processing when the ISI exception is generated, be sure to implement it using OSSetErrorHandler.

Note:When OSDisableCodeExecOnMEM1Hi16MB is called ahead of this function, the size of the region in which execution is prohibited will remain 16MB, and cannot be restored to 8MB.

See Also

OSDisableCodeExecOnMEM1Hi16MB OSEnableCodeExecOnMEM2Lo8MB OSEnableCodeExecOnMEM2Lo16MB OSSetErrorHandler

Revision History

2008/01/17 Initial version.


CONFIDENTIAL