Motorola Minimal PowerPC 603e Dokumentacja

Przeglądaj online lub pobierz Dokumentacja dla Płyty główne Motorola Minimal PowerPC 603e. Motorola Minimal PowerPC 603e Specifications Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 40
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 0
1 2 3 4 5 6 ... 39 40

Podsumowanie treści

Strona 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.

Strona 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

Strona 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.

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 11

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

Strona 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

Strona 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

Strona 14

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

Strona 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

Strona 16

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

Strona 17

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

Strona 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

Strona 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

Strona 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

Strona 21

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

Strona 22

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

Strona 23

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

Strona 24

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

Strona 25

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

Strona 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

Strona 27

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

Strona 28

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

Strona 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

Strona 30

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

Strona 31 - 5.3 reg_defs.h

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

Strona 32

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

Strona 33 - 5.4 ld.script

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

Strona 34

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

Strona 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

Strona 36

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

Strona 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

Strona 38

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

Strona 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

Strona 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

Komentarze do niniejszej Instrukcji

Brak uwag