source: rtems/doc/supplements/powerpc/bsp.t @ 9aceddaf

4.104.114.84.95
Last change on this file since 9aceddaf was 9aceddaf, checked in by Joel Sherrill <joel.sherrill@…>, on 02/11/98 at 14:50:31

updates

  • Property mode set to 100644
File size: 3.7 KB
Line 
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 Board Support Packages, Board Support Packages Introduction, Default Fatal Error Processing Default Fatal Error Handler Operations, Top
11@end ifinfo
12@chapter Board Support Packages
13@ifinfo
14@menu
15* Board Support Packages Introduction::
16* Board Support Packages System Reset::
17* Board Support Packages Processor Initialization::
18@end menu
19@end ifinfo
20
21@ifinfo
22@node Board Support Packages Introduction, Board Support Packages System Reset, Board Support Packages, Board Support Packages
23@end ifinfo
24@section Introduction
25
26An RTEMS Board Support Package (BSP) must be designed
27to support a particular processor and target board combination.
28This chapter presents a discussion of PowerPC specific BSP issues.
29For more information on developing a BSP, refer to the chapter
30titled Board Support Packages in the RTEMS
31Applications User's Guide.
32
33@ifinfo
34@node Board Support Packages System Reset, Board Support Packages Processor Initialization, Board Support Packages Introduction, Board Support Packages
35@end ifinfo
36@section System Reset
37
38An RTEMS based application is initiated or
39re-initiated when the PowerPC processor is reset.  The PowerPC
40architecture defines a Reset Exception, but leaves the
41details of the CPU state as implementation specific.  Please
42refer to the User's Manual for the CPU model in question.
43
44In general, at power-up the PowerPC begin execution at address
450xFFF00100 in supervisor mode with all exceptions disabled.  For
46soft resets, the CPU will vector to either 0xFFF00100 or 0x00000100
47depending upon the setting of the Exception Prefix bit in the MSR.
48If during a soft reset, a Machine Check Exception occurs, then the
49CPU may execute a hard reset.
50
51@ifinfo
52@node Board Support Packages Processor Initialization, Processor Dependent Information Table, Board Support Packages System Reset, Board Support Packages
53@end ifinfo
54@section Processor Initialization
55
56It is the responsibility of the application's
57initialization code to initialize the CPU and board
58to a quiescent state before invoking the @code{rtems_initialize_executive}
59directive.  It is recommended that the BSP utilize the @code{predriver_hook}
60to install default handlers for all exceptions.  These default handlers
61may be overwritten as various device drivers and subsystems install
62their own exception handlers.  Upon completion of RTEMS executive
63initialization, all interrupts are enabled.
64
65If this PowerPC implementation supports on-chip caching
66and this is to be utilized, then it should be enabled during the
67reset application initialization code.  On-chip caching has been
68observed to prevent some emulators from working properly, so it
69may be necessary to run with caching disabled to use these emulators.
70
71In addition to the requirements described in the
72@b{Board Support Packages} chapter of the @b{@value{LANGUAGE}
73Applications User's Manual} for the reset code
74which is executed before the call to @code{rtems_initialize_executive},
75the PowrePC version has the following specific requirements:
76
77@itemize @bullet
78@item Must leave the PR bit of the Machine State Register (MSR) set
79to 0 so the PowerPC remains in the supervisor state.
80
81@item Must set stack pointer (sp or r1) such that a minimum stack
82size of MINIMUM_STACK_SIZE bytes is provided for the
83@code{rtems_initialize_executive} directive.
84
85@item Must disable all external interrupts (i.e. clear the EI (EE)
86bit of the machine state register).
87
88@item Must enable traps so window overflow and underflow
89conditions can be properly handled.
90
91@item Must initialize the PowerPC's initial Exception Table with default
92handlers.
93
94@end itemize
95
Note: See TracBrowser for help on using the repository browser.