1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>OS_CheckIrqStack</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">OS_CheckIrqStack <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include &lt;nitro/os.h&gt;</CODE></PRE>
16  <PRE><CODE>void OS_CheckIrqStack( void );
17 </CODE></PRE>
18</DL>
19<H2>Arguments</H2>
20<P>None.</P>
21<H2>Return Values</H2>
22<P>None.</P>
23<H2>Description</H2>
24<P>Check whether the stack used for IRQ mode has overflowed.</P>
25<P>This function checks the magic numbers written in the stack's highest and lowest locations (and, if set, the warning level location set by the user) to see if they have been rewritten (if the section has been used one or more times). If they have been used, <a href="../debug/OS_Panic.html"><code>OS_Panic()</code></a> will be called and the program will stop.</P>
26<P>Since the magic number is written by <CODE><A href="OS_SetIrqStackChecker.html">OS_SetIrqStackChecker()</A></CODE>, this function must be called afterward. Since <CODE><A href="OS_SetIrqStackChecker.html">OS_SetIrqStackChecker() </A></CODE> is called from inside <CODE><A href="../init/OS_Init.html">OS_Init()</A></CODE>, this function must be called after <CODE><A href="../init/OS_Init.html">OS_Init()</A></CODE>.</P>
27<P>This function is for debugging, so it will not effect the FINALROM.</P>
28<H2>See Also</H2>
29<P><CODE><A href="OS_SetIrqStackWarningOffset.html">OS_SetIrqStackWarningOffset</A>, <A href="OS_GetIrqStackStatus.html">OS_GetIrqStackStatus</A>, <A href="OS_SetIrqStackChecker.html">OS_SetIrqStackChecker</A><BR></CODE></P>
30<H2>Revision History</H2>
31<P>2005/07/19 Initial version.</P>
32<hr><p>CONFIDENTIAL</p></body>
33</HTML>