14.06.2015 Views

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Version</strong> <strong>2.03</strong><br />

MSR<br />

CM MSR CM is set to MSR ICM .<br />

CE, ME,<br />

DE, ICM Unchanged.<br />

All other defined MSR bits set to 0.<br />

Instruction execution resumes at address IVPR 0:47 ||<br />

IVOR9 48:59 ||0b0000.<br />

5.6.11 Decrementer Interrupt<br />

A Decrementer interrupt occurs when no higher priority<br />

exception exists (see Section 5.9 on page 569), a Decrementer<br />

exception exists (TSR DIS =1), and the interrupt<br />

is enabled (TCR DIE =1 and MSR EE =1). See<br />

Section 7.3 on page 577.<br />

Programming Note<br />

MSR EE also enables the External Input and Fixed-<br />

Interval Timer interrupts.<br />

SRR0, SRR1, MSR, and TSR are updated as follows:<br />

SRR0 Set to the effective address of the next<br />

instruction to be executed.<br />

SRR1 Set to the contents of the MSR at the time<br />

of the interrupt.<br />

MSR<br />

CM MSR CM is set to MSR ICM .<br />

CE, ME,<br />

DE, ICM Unchanged.<br />

All other defined MSR bits set to 0.<br />

TSR (See Section 7.5.1 on page 579.)<br />

DIS Set to 1.<br />

Instruction execution resumes at address IVPR 0:47 ||<br />

IVOR10 48:59 ||0b0000.<br />

Programming Note<br />

Software is responsible for clearing the Decrementer<br />

exception status prior to re-enabling the<br />

MSR EE bit in order to avoid another redundant<br />

Decrementer interrupt. To clear the Decrementer<br />

exception, the interrupt handling routine must clear<br />

TSR DIS . Clearing is done by writing a word to TSR<br />

using mtspr with a 1 in any bit position that is to be<br />

cleared and 0 in all other bit positions. The writedata<br />

to the TSR is not direct data, but a mask. A 1<br />

causes the bit to be cleared, and a 0 has no effect.<br />

5.6.12 Fixed-Interval Timer Interrupt<br />

A Fixed-Interval Timer interrupt occurs when no higher<br />

priority exception exists (see Section 5.9 on page 569),<br />

a Fixed-Interval Timer exception exists (TSR FIS =1),<br />

and the interrupt is enabled (TCR FIE =1 and MSR EE =1).<br />

See Section 7.6 on page 580.<br />

Programming Note<br />

MSR EE also enables the External Input and Decrementer<br />

interrupts.<br />

SRR0, SRR1, MSR, and TSR are updated as follows:<br />

SRR0 Set to the effective address of the next<br />

instruction to be executed.<br />

SRR1 Set to the contents of the MSR at the time<br />

of the interrupt.<br />

MSR<br />

CM MSR CM is set to MSR ICM .<br />

CE, ME,<br />

DE, ICM Unchanged.<br />

All other defined MSR bits set to 0.<br />

TSR (See Section 7.5.1 on page 579.)<br />

FIS Set to 1<br />

Instruction execution resumes at address IVPR 0:47 ||<br />

IVOR11 48:59 ||0b0000.<br />

Programming Note<br />

Software is responsible for clearing the Fixed-Interval<br />

Timer exception status prior to re-enabling the<br />

MSR EE bit in order to avoid another redundant<br />

Fixed-Interval Timer interrupt. To clear the Fixed-<br />

Interval Timer exception, the interrupt handling routine<br />

must clear TSR FIS . Clearing is done by writing<br />

a word to TSR using mtspr with a 1 in any bit position<br />

that is to be cleared and 0 in all other bit positions.<br />

The write-data to the TSR is not direct data,<br />

but a mask. A 1 causes the bit to be cleared, and a<br />

0 has no effect.<br />

5.6.13 Watchdog Timer Interrupt<br />

A Watchdog Timer interrupt occurs when no higher priority<br />

exception exists (see Section 5.9 on page 569), a<br />

Watchdog Timer exception exists (TSR WIS =1), and the<br />

interrupt is enabled (i.e. TCR WIE =1 and MSR CE =1).<br />

See Section 7.7 on page 580.<br />

Programming Note<br />

MSR CE also enables the Critical Input interrupt.<br />

560<br />

<strong>Power</strong> ISA -- Book III-E

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!