Motorola Minimal PowerPC 603e Spécifications

Naviguer en ligne ou télécharger Spécifications pour Cartes mères Motorola Minimal PowerPC 603e. Motorola Minimal PowerPC 603e Specifications Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 40
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
Order Number: AN1809/D
Rev. 0, 3/2000
Semiconductor Products Sector
This document contains information on a new product under development by Motorola.
Motorola reserves the right to change or discontinue this product without notice.
© Motorola, Inc., 2000. All rights reserved.
Application Note
A Minimal PowerPC
ª
Boot Sequence for
Executing Compiled C Programs
PowerPC Systems Architecture & Performance
This document describes the procedures necessary to successfully initialize a PowerPC processor and begin
executing programs compiled using the PowerPC embedded application interface (EABI). The items
discussed in this document have been tested for MPC603eª, MPC750, and MPC7400 microprocessors.
The methods and source code presented in this document may work unmodiÞed on similar PowerPC
platforms as well.
This document contains the following topics:
¥ Part I, ÒOverview,Ó provides an overview of the conditions and exceptions for the procedures
described in this document.
¥ Part II, ÒPowerPC Processor Initialization,Ó provides information on the general setup of the
processor registers, caches, and MMU.
¥ Part III, ÒPowerPC EABI Compliance,Ó discusses aspects of the EABI that apply directly to
preparing to jump into a compiled C program.
¥ Part IV, ÒSample Boot Sequence,Ó describes the basic operation of the boot sequence and the many
options of conÞguration, explains in detail a sample conÞgurable boot and how the code may be
modiÞed for use in different environments, and discusses the compilation procedure using the
supporting GNU build environment.
¥ Part V, ÒSource Files,Ó contains the complete source code for the Þles ppcinit.S, ppcinit.h,
reg_defs.h, ld.script, and MakeÞle.
Vue de la page 0
1 2 3 4 5 6 ... 39 40

Résumé du contenu

Page 1 - Executing Compiled C Programs

Order Number: AN1809/DRev. 0, 3/2000 Semiconductor Products Sector This document contains information on a new product under development by Motorola.

Page 2 - Part I Overview

10 A Minimal PowerPCª Boot Sequence for Executing Compiled C Program s Sample Boot Sequence PRAM_BASE ppcinit.h The start address of the address ra

Page 3 - 2.2 Memory Management Unit

A Minimal PowerPCª Boot Sequence for 11 Executing Compiled C Programs Sample Boot Sequence Table 7 shows the default BAT register values. Table 7.

Page 4

12 A Minimal PowerPCª Boot Sequence for Executing Compiled C Program s Sample Boot Sequence Each of these options can be conÞgured in order to cust

Page 5

A Minimal PowerPCª Boot Sequence for 13 Executing Compiled C Programs Sample Boot Sequence 4.4 Code Relocation The code relocation depends on varia

Page 6 - 2.3 Caches

14 A Minimal PowerPCª Boot Sequence for Executing Compiled C Program s Sample Boot Sequence The transition from .S and .c Þles to .o Þles is accomp

Page 7

A Minimal PowerPCª Boot Sequence for 15 Executing Compiled C Programs Sample Boot Sequence The example .text section is located at 0xFFF0_0000 in th

Page 8 - Part IV Sample Boot Sequence

16 A Minimal PowerPCª Boot Sequence for Executing Compiled C Program s Sample Boot Sequence *(.dynamic);_final_data_end = .;}/* Now save off the st

Page 9 - 4.1 ConÞgurable Options

A Minimal PowerPCª Boot Sequence for 17 Executing Compiled C Programs Sample Boot Sequence 4.6 Using the Sample Boot Sequence Using the sample boot

Page 10

18 A Minimal PowerPCª Boot Sequence for Executing Compiled C Program s Sample Boot Sequence 4.7 Limitations of the Sample Boot Sequence The sample

Page 11

A Minimal PowerPCª Boot Sequence for 19 Executing Compiled C Programs Source Files Part V Source FilesThe following sections contain the complete s

Page 12 - 4.2 General Initialization

2 A Minimal PowerPCª Boot Sequence for Executing Compiled C Program s Overview Part I Overview The procedures discussed in this document perform o

Page 13 - 4.4 Code Relocation

20 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files // hereÕs the real startup code, located outside the exception vect

Page 14

A Minimal PowerPCª Boot Sequence for 21Executing Compiled C ProgramsSource Files// turn off the L2I global invalidate bitmfspr r3, l2crrlwinm r3,r3,0,

Page 15

22 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files // get the start address of the main routine of the code we want to

Page 16

A Minimal PowerPCª Boot Sequence for 23Executing Compiled C ProgramsSource Filesaddis r1,r0,STACK_LOC@h // STACK_LOC defined in ppcinit.hori r1

Page 17

24 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files //-----------------------------------------------------------------

Page 18

A Minimal PowerPCª Boot Sequence for 25Executing Compiled C ProgramsSource Filescont1:lwzx r5,0,r4stwx r5,0,r3lwzx r8,0,r3cmp 0,0,r8,r5bne erroraddi r

Page 19 - Part V Source Files

26 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files setup_bats:addis r0,r0,0x0000addis r4,r0,IBAT0L_VAL@hori r4,r4,IBAT

Page 20

A Minimal PowerPCª Boot Sequence for 27Executing Compiled C ProgramsSource Filesaddis r4,r0,IBAT3L_VAL@hori r4,r4,IBAT3L_VAL@l addis r3,r0,IBAT3

Page 21

28 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files #ifdef MPC603erlwinm r6,r5,0,22,20mtspr hid0,r6#endifblr//---------

Page 22

A Minimal PowerPCª Boot Sequence for 29Executing Compiled C ProgramsSource Files//--------------------------------------------------------------------

Page 23

A Minimal PowerPCª Boot Sequence for 3 Executing Compiled C Programs PowerPC Processor Initialization 2.2 Memory Management Unit A boot program wil

Page 24

30 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files * RAM type = burst SRAM * Output Hold = 0.5ns * * These may need

Page 25

A Minimal PowerPCª Boot Sequence for 31Executing Compiled C ProgramsSource Files#define DBAT0L_VALIBAT0L_VAL#define DBAT0U_VALIBAT0U_VAL#define IBAT1L

Page 26

32 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files #define dbat3u 542#define dbat3l 543#define pvr 287#define l2cr 101

Page 27

A Minimal PowerPCª Boot Sequence for 33Executing Compiled C ProgramsSource Files#define L2CR_L2I 0x00200000 /* bit 10 Global invalidate bit */#define

Page 28

34 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files DATA_START = DEFINED(DATA_START) ? DATA_START : (((ADDR(.text) + SI

Page 29 - 5.2 ppcinit.h

A Minimal PowerPCª Boot Sequence for 35Executing Compiled C ProgramsSource Files .debug_pubnames 0 : {*(.debug_pubnames)} .debug_sfnames 0 : {*(.deb

Page 30

36 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files LDFLAGS += -Wl,--defsym,DATA_START=$(DATA_START) \-Wl,--defsym,IMAG

Page 31 - 5.3 reg_defs.h

A Minimal PowerPCª Boot Sequence for 37Executing Compiled C ProgramsSource Files

Page 32

38 A Minimal PowerPCª Boot Sequence for Executing Compiled C ProgramsSource Files

Page 33 - 5.4 ld.script

A Minimal PowerPCª Boot Sequence for 39Executing Compiled C ProgramsSource Files

Page 34

4 A Minimal PowerPCª Boot Sequence for Executing Compiled C Program s PowerPC Processor Initialization The procedure for initializing a pair of BAT

Page 35 - 5.5 MakeÞle

Information in this document is provided solely to enable system and software implementers to use PowerPC microprocessors. There are no expressor impl

Page 36

A Minimal PowerPCª Boot Sequence for 5 Executing Compiled C Programs PowerPC Processor Initialization In addition, the programmer may specify the me

Page 37 - Source Files

6 A Minimal PowerPCª Boot Sequence for Executing Compiled C Program s PowerPC Processor Initialization When the MMU setup completes, the MMU may be

Page 38

A Minimal PowerPCª Boot Sequence for 7 Executing Compiled C Programs PowerPC EABI Compliance Part III PowerPC EABI Compliance The PowerPC EABI spec

Page 39

8 A Minimal PowerPCª Boot Sequence for Executing Compiled C Program s Sample Boot Sequence Much of the required EABI register setup is accomplished

Page 40

A Minimal PowerPCª Boot Sequence for 9 Executing Compiled C Programs Sample Boot Sequence 4.1 ConÞgurable Options The design of the sample boot seq

Commentaires sur ces manuels

Pas de commentaire