1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>OSDisableCodeExecOnMEM1Hi16MB</title>
10</head>
11
12<body>
13
14<h1>OSDisableCodeExecOnMEM1Hi16MB</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/os.h&gt;
19
20void OSDisableCodeExecOnMEM1Hi16MB( void );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<p>None.</p>
25
26<h2>Return Values</h2>
27<p>None.</p>
28
29<H2>Description</H2>
30<P>
31Prohibits the execution of code located in the last half (16MB) of internal main memory (MEM1 region).
32</P>
33<P>
34Use this function when you know ahead of time that code is not located in the last half (16MB) of MEM1 for an application.
35</P>
36<P>
37Use 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.
38</P>
39<P>
40If you want to prepare your own processing when the ISI exception is generated, be sure to implement it using <CODE><A HREF="../Error/OSSetErrorHandler.html">OSSetErrorHandler</A></CODE>.
41</P>
42<P>
43<B>Note:</B>Even if <CODE><a href="OSDisableCodeExecOnMEM1Hi8MB.html">OSDisableCodeExecOnMEM1Hi8MB</a></CODE> is called after calling this function, the size of the region in which execution is prohibited cannot be restored to 8MB.
44</P>
45
46<h2>See Also</h2>
47<P class="reference">
48<a href="OSDisableCodeExecOnMEM1Hi8MB.html">OSDisableCodeExecOnMEM1Hi8MB</a>
49<a href="OSEnableCodeExecOnMEM2Lo8MB.html">OSEnableCodeExecOnMEM2Lo8MB</a>
50<a href="OSEnableCodeExecOnMEM2Lo16MB.html">OSEnableCodeExecOnMEM2Lo16MB</a>
51<A HREF="../Error/OSSetErrorHandler.html">OSSetErrorHandler</A>
52</p>
53
54<H2>Revision History</H2>
55<P>
562008/01/17 Initial version.<br>
57</P>
58
59<hr><p>CONFIDENTIAL</p></body>
60</html>