source: rtems/cpukit/libmisc/stackchk/stackchk.h @ 20f54e9

4.104.114.84.95
Last change on this file since 20f54e9 was 71f4beb, checked in by Joel Sherrill <joel.sherrill@…>, on 04/15/98 at 15:08:49

Stack check now initialized as part of initial extension set.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*  stackchk.h
2 *
3 *  This include file contains information necessary to utilize
4 *  and install the stack checker mechanism.
5 *
6 *  COPYRIGHT (c) 1989-1998.
7 *  On-Line Applications Research Corporation (OAR).
8 *  Copyright assigned to U.S. Government, 1994.
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.OARcorp.com/rtems/license.html.
13 *
14 *  $Id$
15 */
16
17#ifndef __STACK_CHECK_h
18#define __STACK_CHECK_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/*
25 *  Stack_check_Initialize
26 */
27
28void Stack_check_Initialize( void );
29
30/*
31 *  Stack_check_Dump_usage
32 */
33
34void Stack_check_Dump_usage( void );
35
36/*
37 *  Stack_check_Create_extension
38 */
39
40boolean Stack_check_Create_extension(
41  Thread_Control *running,
42  Thread_Control *the_thread
43);
44
45/*
46 *  Stack_check_Begin_extension
47 */
48
49void Stack_check_Begin_extension(
50  Thread_Control *the_thread
51);
52
53/*
54 *  Stack_check_Switch_extension
55 */
56
57void Stack_check_Switch_extension(
58  Thread_Control *running,
59  Thread_Control *heir
60);
61
62/*
63 *  Extension set definition
64 */
65
66#define STACK_CHECKER_EXTENSION \
67{ \
68  Stack_check_Create_extension,        /* rtems_task_create  */ \
69  0,                                   /* rtems_task_start   */ \
70  0,                                   /* rtems_task_restart */ \
71  0,                                   /* rtems_task_delete  */ \
72  Stack_check_Switch_extension,        /* task_switch  */ \
73  Stack_check_Begin_extension,         /* task_begin   */ \
74  0,                                   /* task_exitted */ \
75  0 /* Stack_check_Fatal_extension */, /* fatal        */ \
76}
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif
83/* end of include file */
Note: See TracBrowser for help on using the repository browser.