RTEMS Logo

RTEMS 4.9.6 On-Line Library


PowerPC Specific Information Special Registers

PREV UP NEXT Bookshelf RTEMS CPU Architecture Supplement

7.2.1.3: Special Registers

The PowerPC architecture includes a number of special registers which are critical to the programming model:

Machine State Register
The MSR contains the processor mode, power management mode, endian mode, exception information, privilege level, floating point available and floating point excepiton mode, address translation information and the exception prefix.
Link Register
The LR contains the return address after a function call. This register must be saved before a subsequent subroutine call can be made. The use of this register is discussed further in the Call and Return Mechanism section below.
Count Register
The CTR contains the iteration variable for some loops. It may also be used for indirect function calls and jumps.


PREV UP NEXT Bookshelf RTEMS CPU Architecture Supplement

Copyright © 1988-2008 OAR Corporation