RTEMS: SPARC Assembler Support

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Macros
SPARC Assembler Support
Internal » SuperCore » CPU Architecture Support » SPARC

SPARC Assembler Support. More...

## Macros
#define | __USER_LABEL_PREFIX__ _
#define | __REGISTER_PREFIX__
#define | SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
#define | REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
#define | BEGIN_CODE_DCL .text
#define | END_CODE_DCL
#define | BEGIN_DATA_DCL .data
#define | END_DATA_DCL
#define | BEGIN_CODE .text
#define | END_CODE
#define | BEGIN_DATA
#define | END_DATA
#define | BEGIN_BSS
#define | END_BSS
#define | END
#define | PUBLIC(sym) .globl SYM (sym)
#define | EXTERN(sym) .globl SYM (sym)
#define | TRAP(_vector, _handler)
#define | RTRAP(_vector, _handler)

## Detailed Description

SPARC Assembler Support.

## Macro Definition Documentation

## ◆ RTRAP

#define RTRAP | ( |  | _vector,
|  |  | _handler
| ) |  |

Value:
mov %g0, %l0 ; \
sethi %hi(_handler), %l4 ; \
jmp %l4+%lo(_handler); \
mov _vector, %l3

## ◆ TRAP

#define TRAP | ( |  | _vector,
|  |  | _handler
| ) |  |

Value:
mov %psr, %l0 ; \
sethi %hi(_handler), %l4 ; \
jmp %l4+%lo(_handler); \
mov _vector, %l3