#include <nitro/os.h>
void OS_CheckStack( OSThread* thread );
Checks for stack overflow with the specified thread
This function checks the magic number written in the stack's top and bottom positions (and, if set, the user warning level position).It checks if it has been rewritten (this portion was used one or more times). If it is being used, the program that called OS_Panic() is stopped.
This function is for debugging, so it will not do anything on the FINALROM.
thread |
The thread to be checked. |
None
OS_SetThreadStackWarningOffset, OS_GetStackStatus
04/29/2004 Deleted caution concerning threads that cannot be checked
02/25/2004 Added caution concerning threads that cannot be checked
01/21/2004 Initial Version