source: rtems/doc/cpu_supplement/sh.t @ 19078dc6

5
Last change on this file since 19078dc6 was 19078dc6, checked in by Sebastian Huber <sebastian.huber@…>, on 07/23/15 at 06:36:30

doc: Add SMP section to CPU Arch Supplement

  • Property mode set to 100644
File size: 3.8 KB
Line 
1@c
2@c  COPYRIGHT (c) 1988-2002.
3@c  On-Line Applications Research Corporation (OAR).
4@c  All rights reserved.
5
6@ifinfo
7@end ifinfo
8@chapter SuperH Specific Information
9
10This chapter discusses the SuperH architecture dependencies
11in this port of RTEMS.  The SuperH family has a wide variety
12of implementations by a wide range of vendors.  Consequently,
13there are many, many CPU models within it.
14
15
16@subheading Architecture Documents
17
18For information on the SuperH architecture,
19refer to the following documents available from VENDOR
20(@file{http//www.XXX.com/}):
21
22@itemize @bullet
23@item @cite{SuperH Family Reference, VENDOR, PART NUMBER}.
24@end itemize
25
26@c
27@c
28@c
29@section CPU Model Dependent Features
30
31This chapter presents the set of features which vary
32across SuperH implementations and are of importance to RTEMS.
33The set of CPU model feature macros are defined in the file
34@code{cpukit/score/cpu/sh/sh.h} based upon the particular CPU
35model specified on the compilation command line.
36
37@subsection Another Optional Feature
38
39The macro XXX
40
41@c
42@c
43@c
44
45@section Calling Conventions
46
47
48@subsection Calling Mechanism
49
50All RTEMS directives are invoked using a @code{XXX}
51instruction and return to the user application via the
52@code{XXX} instruction.
53
54@subsection Register Usage
55
56The SH1 has 16 general registers (r0..r15).
57
58@itemize @bullet
59
60@item r0..r3 used as general volatile registers
61
62@item r4..r7 used to pass up to 4 arguments to functions, arguments
63above 4 are
64passed via the stack)
65
66@item r8..13 caller saved registers (i.e. push them to the stack if you
67need them inside of a function)
68
69@item r14 frame pointer
70
71@item r15 stack pointer
72
73@end itemize
74
75@subsection Parameter Passing
76
77XXX
78
79@c
80@c
81@c
82
83@section Memory Model
84
85@subsection Flat Memory Model
86
87The SuperH family supports a flat 32-bit address
88space with addresses ranging from 0x00000000 to 0xFFFFFFFF (4
89gigabytes).  Each address is represented by a 32-bit value and
90is byte addressable.  The address may be used to reference a
91single byte, word (2-bytes), or long word (4 bytes).  Memory
92accesses within this address space are performed in big endian
93fashion by the processors in this family.
94
95Some of the SuperH family members support virtual memory and
96segmentation.  RTEMS does not support virtual memory or
97segmentation on any of the SuperH family members.  It is the
98responsibility of the BSP to initialize the mapping for
99a flat memory model.
100
101@c
102@c
103@c
104
105@section Interrupt Processing
106
107Although RTEMS hides many of the processor dependent
108details of interrupt processing, it is important to understand
109how the RTEMS interrupt manager is mapped onto the processor's
110unique architecture. Discussed in this chapter are the MIPS's
111interrupt response and control mechanisms as they pertain to
112RTEMS.
113
114@subsection Vectoring of an Interrupt Handler
115
116Upon receipt of an interrupt the XXX family
117members with separate interrupt stacks automatically perform the
118following actions:
119
120@itemize @bullet
121@item TBD
122
123@end itemize
124
125A nested interrupt is processed similarly by these
126CPU models with the exception that only a single ISF is placed
127on the interrupt stack and the current stack need not be
128switched.
129
130@subsection Interrupt Levels
131
132TBD
133
134@c
135@c
136@section Default Fatal Error Processing
137
138The default fatal error handler for this architecture disables processor
139interrupts, places the error code in @b{XXX}, and executes a @code{XXX}
140instruction to simulate a halt processor instruction.
141
142@section Symmetric Multiprocessing
143
144SMP is not supported.
145
146@section Thread-Local Storage
147
148Thread-local storage is not implemented.
149
150@c
151@c
152@c
153
154@section Board Support Packages
155
156@subsection System Reset
157
158An RTEMS based application is initiated or
159re-initiated when the processor is reset.  When the
160processor is reset, it performs the following actions:
161
162@itemize @bullet
163@item TBD
164
165@end itemize
166
167@subsection Processor Initialization
168
169TBD
Note: See TracBrowser for help on using the repository browser.