1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-1998. |
---|
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 MC68xxx version of the RTEMS CPU Dependent |
---|
37 | Information Table contains the information required to interface |
---|
38 | a Board Support Package and RTEMS on the MC68xxx. This |
---|
39 | information is provided to allow RTEMS to interoperate |
---|
40 | effectively with the BSP. The C structure definition is given |
---|
41 | here: |
---|
42 | |
---|
43 | @example |
---|
44 | @group |
---|
45 | typedef struct @{ |
---|
46 | void (*pretasking_hook)( void ); |
---|
47 | void (*predriver_hook)( void ); |
---|
48 | void (*postdriver_hook)( void ); |
---|
49 | void (*idle_task)( void ); |
---|
50 | boolean do_zero_of_workspace; |
---|
51 | unsigned32 interrupt_stack_size; |
---|
52 | unsigned32 extra_mpci_receive_server_stack; |
---|
53 | void * (*stack_allocate_hook)( unsigned32 ); |
---|
54 | void (*stack_free_hook)( void* ); |
---|
55 | /* end of fields required on all CPUs */ |
---|
56 | |
---|
57 | m68k_isr *interrupt_vector_table; |
---|
58 | @} rtems_cpu_table; |
---|
59 | @end group |
---|
60 | @end example |
---|
61 | |
---|
62 | @table @code |
---|
63 | @item pretasking_hook |
---|
64 | is the address of the |
---|
65 | user provided routine which is invoked once RTEMS initialization |
---|
66 | is complete but before interrupts and tasking are enabled. This |
---|
67 | field may be NULL to indicate that the hook is not utilized. |
---|
68 | |
---|
69 | @item predriver_hook |
---|
70 | is the address of the user provided |
---|
71 | routine which is invoked with tasking enabled immediately before |
---|
72 | the MPCI and device drivers are initialized. RTEMS |
---|
73 | initialization is complete, interrupts and tasking are enabled, |
---|
74 | but no device drivers are initialized. This field may be NULL to |
---|
75 | indicate that the hook is not utilized. |
---|
76 | |
---|
77 | @item postdriver_hook |
---|
78 | is the address of the user provided |
---|
79 | routine which is invoked with tasking enabled immediately after |
---|
80 | the MPCI and device drivers are initialized. RTEMS |
---|
81 | initialization is complete, interrupts and tasking are enabled, |
---|
82 | and the device drivers are initialized. This field may be NULL |
---|
83 | to indicate that the hook is not utilized. |
---|
84 | |
---|
85 | @item idle_task |
---|
86 | is the address of the optional user |
---|
87 | provided routine which is used as the system's IDLE task. If |
---|
88 | this field is not NULL, then the RTEMS default IDLE task is not |
---|
89 | used. This field may be NULL to indicate that the default IDLE |
---|
90 | is to be used. |
---|
91 | |
---|
92 | @item do_zero_of_workspace |
---|
93 | indicates whether RTEMS should |
---|
94 | zero the Workspace as part of its initialization. If set to |
---|
95 | TRUE, the Workspace is zeroed. Otherwise, it is not. |
---|
96 | |
---|
97 | @item interrupt_stack_size |
---|
98 | is the size of the RTEMS |
---|
99 | allocated interrupt stack in bytes. This value must be at least |
---|
100 | as large as MINIMUM_STACK_SIZE. |
---|
101 | |
---|
102 | @item extra_mpci_receive_server_stack |
---|
103 | is the extra stack space allocated for the RTEMS MPCI receive server task |
---|
104 | in bytes. The MPCI receive server may invoke nearly all directives and |
---|
105 | may require extra stack space on some targets. |
---|
106 | |
---|
107 | @item stack_allocate_hook |
---|
108 | is the address of the optional user provided routine which allocates |
---|
109 | memory for task stacks. If this hook is not NULL, then a stack_free_hook |
---|
110 | must be provided as well. |
---|
111 | |
---|
112 | @item stack_free_hook |
---|
113 | is the address of the optional user provided routine which frees |
---|
114 | memory for task stacks. If this hook is not NULL, then a stack_allocate_hook |
---|
115 | must be provided as well. |
---|
116 | |
---|
117 | @item interrupt_vector_table |
---|
118 | is the base address of the CPU's Exception Vector Table. |
---|
119 | |
---|
120 | @end table |
---|