RTEMS
Macros
SPARC Assembler Support

SPARC Assembler Support. More...

Macros

#define __USER_LABEL_PREFIX__   _
 
#define __REGISTER_PREFIX__
 
#define SYM(x)   RTEMS_XCONCAT(__USER_LABEL_PREFIX__, x)
 
#define REG(x)   RTEMS_XCONCAT(__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

Definition at line 122 of file asm.h.

◆ TRAP

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

Definition at line 112 of file asm.h.