1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-1996. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @ifinfo |
---|
10 | @node Processor Dependent Information Table, Processor Dependent Information Table Introduction, Board Support Packages Processor Initialization, Top |
---|
11 | @end ifinfo |
---|
12 | @chapter Processor Dependent Information Table |
---|
13 | @ifinfo |
---|
14 | @menu |
---|
15 | * Processor Dependent Information Table Introduction:: |
---|
16 | * Processor Dependent Information Table CPU Dependent Information Table:: |
---|
17 | @end menu |
---|
18 | @end ifinfo |
---|
19 | |
---|
20 | @ifinfo |
---|
21 | @node Processor Dependent Information Table Introduction, Processor Dependent Information Table CPU Dependent Information Table, Processor Dependent Information Table, Processor Dependent Information Table |
---|
22 | @end ifinfo |
---|
23 | @section Introduction |
---|
24 | |
---|
25 | Any highly processor dependent information required |
---|
26 | to describe a processor to RTEMS is provided in the CPU |
---|
27 | Dependent Information Table. This table is not required for all |
---|
28 | processors supported by RTEMS. This chapter describes the |
---|
29 | contents, if any, for a particular processor type. |
---|
30 | |
---|
31 | @ifinfo |
---|
32 | @node Processor Dependent Information Table CPU Dependent Information Table, Memory Requirements, Processor Dependent Information Table Introduction, Processor Dependent Information Table |
---|
33 | @end ifinfo |
---|
34 | @section CPU Dependent Information Table |
---|
35 | |
---|
36 | The SPARC version of the RTEMS CPU Dependent |
---|
37 | Information Table is given by the C structure definition is |
---|
38 | shown below: |
---|
39 | |
---|
40 | @example |
---|
41 | @group |
---|
42 | typedef struct @{ |
---|
43 | void (*pretasking_hook)( void ); |
---|
44 | void (*predriver_hook)( void ); |
---|
45 | void (*postdriver_hook)( void ); |
---|
46 | void (*idle_task)( void ); |
---|
47 | boolean do_zero_of_workspace; |
---|
48 | unsigned32 interrupt_stack_size; |
---|
49 | unsigned32 extra_mpci_receive_server_stack; |
---|
50 | void * (*stack_allocate_hook)( unsigned32 ); |
---|
51 | void (*stack_free_hook)( void* ); |
---|
52 | /* end of fields required on all CPUs */ |
---|
53 | |
---|
54 | @} rtems_cpu_table; |
---|
55 | @end group |
---|
56 | @end example |
---|
57 | |
---|
58 | @table @code |
---|
59 | @item pretasking_hook |
---|
60 | is the address of the |
---|
61 | user provided routine which is invoked once RTEMS initialization |
---|
62 | is complete but before interrupts and tasking are enabled. This |
---|
63 | field may be NULL to indicate that the hook is not utilized. |
---|
64 | |
---|
65 | @item predriver_hook |
---|
66 | is the address of the user provided |
---|
67 | routine which is invoked with tasking enabled immediately before |
---|
68 | the MPCI and device drivers are initialized. RTEMS |
---|
69 | initialization is complete, interrupts and tasking are enabled, |
---|
70 | but no device drivers are initialized. This field may be NULL to |
---|
71 | indicate that the hook is not utilized. |
---|
72 | |
---|
73 | @item postdriver_hook |
---|
74 | is the address of the user provided |
---|
75 | routine which is invoked with tasking enabled immediately after |
---|
76 | the MPCI and device drivers are initialized. RTEMS |
---|
77 | initialization is complete, interrupts and tasking are enabled, |
---|
78 | and the device drivers are initialized. This field may be NULL |
---|
79 | to indicate that the hook is not utilized. |
---|
80 | |
---|
81 | @item idle_task |
---|
82 | is the address of the optional user |
---|
83 | provided routine which is used as the system's IDLE task. If |
---|
84 | this field is not NULL, then the RTEMS default IDLE task is not |
---|
85 | used. This field may be NULL to indicate that the default IDLE |
---|
86 | is to be used. |
---|
87 | |
---|
88 | @item do_zero_of_workspace |
---|
89 | indicates whether RTEMS should |
---|
90 | zero the Workspace as part of its initialization. If set to |
---|
91 | TRUE, the Workspace is zeroed. Otherwise, it is not. |
---|
92 | |
---|
93 | @item interrupt_stack_size |
---|
94 | is the size of the RTEMS allocated interrupt stack in bytes. |
---|
95 | This value must be at least as large as MINIMUM_STACK_SIZE. |
---|
96 | |
---|
97 | @item extra_mpci_receive_server_stack |
---|
98 | is the extra stack space allocated for the RTEMS MPCI receive server task |
---|
99 | in bytes. The MPCI receive server may invoke nearly all directives and |
---|
100 | may require extra stack space on some targets. |
---|
101 | |
---|
102 | @item stack_allocate_hook |
---|
103 | is the address of the optional user provided routine which allocates |
---|
104 | memory for task stacks. If this hook is not NULL, then a stack_free_hook |
---|
105 | must be provided as well. |
---|
106 | |
---|
107 | @item stack_free_hook |
---|
108 | is the address of the optional user provided routine which frees |
---|
109 | memory for task stacks. If this hook is not NULL, then a stack_allocate_hook |
---|
110 | must be provided as well. |
---|
111 | |
---|
112 | @end table |
---|
113 | |
---|