EasyManuals Logo

IBM PowerPC 405GP User Manual

IBM PowerPC 405GP
668 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #214 background imageLoading...
Page #214 background image
/*
Initialize vector table and interrupt handlers if not already done */
/*
--------------------------------------------------------*/
/*
Prepare system for asynchronous interrupts.
*/
/*
--------------------------------------------------------*/
/*
Initialize and configure timer facilities */
mtspr(PIT, 0);
mtspr(TSR, OxFFFFFFFF);
mtspr(TCR,
timecenable);
mtspr(TBL, 0);
mtspr(TBU, time_base_u);
mtspr(TBL,
time_base_I);
mtspr(PIT,
pit_count);
/*
Initialize the MSR
/*
clear PIT so no PIT indication after TSR cleared*/
/*
clear TSR */
/*
enable desired timers */
/*
reset time base low first to avoid ripple */
/*
set time base,
hi
first to catch possible ripple */
/*
set time base, low */
/*
set desired PIT count */
*/
/*
Exceptions must be enabled immediately after timer facilities to avoid missing a */
/*
timer exception. */
/*
~
1*
The MSR also controls privileged/user mode, translation, and the wait state. */
/*
These must
be
initialized by the operating system or application code. */
/*
If enabling translation, code must initialize the TLB. */
~
~
mtmsr(machine_state);
~ ~
/*
Initialization of other processor facilities should be performed at this time. */
~ ~
~
~
1*
Initialization of non-processor facilities should be performed at this time. */
~ ~
~ ~
/*
Branch to operating system or application code can occur at this time. * /
~
~
Preliminary Reset and Initialization 8-17

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM PowerPC 405GP and is the answer not in the manual?

IBM PowerPC 405GP Specifications

General IconGeneral
BrandIBM
ModelPowerPC 405GP
CategoryComputer Hardware
LanguageEnglish

Related product manuals