RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Files | Macros
SPARC Assembler Support

SPARC Assembler Support. More...

Files

file  asm.h
 This header file provides interfaces to address problems caused by incompatible flavor of assemblers and toolsets.
 

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

◆ TRAP

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