RTEMS 4.9.2 On-Line Library
SuperH Specific Information Register Usage
RTEMS CPU Architecture Supplement
8.2.2: Register Usage
The SH1 has 16 general registers (r0..r15).
- r0..r3 used as general volatile registers
- r4..r7 used to pass up to 4 arguments to functions, arguments
above 4 are
passed via the stack)
- r8..13 caller saved registers (i.e. push them to the stack if you
need them inside of a function)
- r14 frame pointer
- r15 stack pointer
RTEMS CPU Architecture Supplement
Copyright © 1988-2008 OAR Corporation