source: rtems/cpukit/libmisc/stackchk/internal.h @ f26145b

4.104.114.84.95
Last change on this file since f26145b was 3e08d4e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 26, 2004 at 6:59:18 AM

2004-03-26 Ralf Corsepius <ralf_corsepius@…>

  • libmisc/capture/capture-cli.c, libmisc/capture/capture.c, libmisc/capture/capture.h, libmisc/cpuuse/cpuuse.c, libmisc/devnull/devnull.c, libmisc/fsmount/fsmount.h, libmisc/monitor/mon-config.c, libmisc/monitor/mon-dname.c, libmisc/monitor/mon-driver.c, libmisc/monitor/mon-extension.c, libmisc/monitor/mon-itask.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-mpci.c, libmisc/monitor/mon-object.c, libmisc/monitor/mon-prmisc.c, libmisc/monitor/mon-queue.c, libmisc/monitor/mon-server.c, libmisc/monitor/mon-symbols.c, libmisc/monitor/monitor.h, libmisc/monitor/symbols.h, libmisc/mw-fb/mw_uid.c, libmisc/rtmonuse/rtmonuse.c, libmisc/serdbg/serdbg.h, libmisc/serdbg/serdbgio.c, libmisc/serdbg/termios_printk.c, libmisc/serdbg/termios_printk.h, libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/stackchk/check.c, libmisc/stackchk/internal.h: Convert to using c99 fixed size types.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*  internal.h
2 *
3 *  This include file contains internal information
4 *  for the RTEMS stack checker.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef __INTERNAL_STACK_CHECK_h
17#define __INTERNAL_STACK_CHECK_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*
24 *  This structure is used to fill in and compare the "end of stack"
25 *  marker pattern.
26 *  pattern area must be a multiple of 4 words.
27 */
28
29#ifdef CPU_STACK_CHECK_SIZE
30#define PATTERN_SIZE_WORDS      (((CPU_STACK_CHECK_SIZE / 4) + 3) & ~0x3)
31#else
32#define PATTERN_SIZE_WORDS      (4)
33#endif
34
35#define PATTERN_SIZE_BYTES      (PATTERN_SIZE_WORDS * sizeof(uint32_t  ))
36
37typedef struct {
38   uint32_t    pattern[ PATTERN_SIZE_WORDS ];
39} Stack_check_Control;
40
41/*
42 *  The pattern used to fill the entire stack.
43 */
44
45#define BYTE_PATTERN 0xA5
46#define U32_PATTERN 0xA5A5A5A5
47
48/*
49 *  Stack_check_Create_extension
50 */
51
52boolean Stack_check_Create_extension(
53  Thread_Control *running,
54  Thread_Control *the_thread
55);
56
57/*
58 *  Stack_check_Begin_extension
59 */
60
61void Stack_check_Begin_extension(
62  Thread_Control *the_thread
63);
64
65/*
66 *  Stack_check_Switch_extension
67 */
68
69void Stack_check_Switch_extension(
70  Thread_Control *running,
71  Thread_Control *heir
72);
73
74/*
75 *  Stack_check_Fatal_extension
76 */
77
78void Stack_check_Fatal_extension(
79    Internal_errors_Source  source,
80    boolean                 is_internal,
81    uint32_t                status
82);
83
84/*
85 *  Stack_check_Dump_usage
86 */
87
88void Stack_check_Dump_usage( void );
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif
95/* end of include file */
Note: See TracBrowser for help on using the repository browser.