Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
traps.h File Reference

Go to the source code of this file.

Macros

#define NUM_SPARC_TRAPS   255
 
#define SPARC_MOV_CONST_L3(const)   (0xa6102000 | (const&0xfff))
 
#define SPARC_BRANCH(dest_addr, inst_addr)   (0x10800000 | (((dest_addr-inst_addr)>>2)&0x3fffff))
 
#define SPARC_RD_PSR_L0   (0xa1480000)
 
#define SPARC_RD_WIM_L3   (0xa7500000)
 
#define SPARC_NOP   (0x01000000)
 
#define SP_TRAP_TFLT   0x1 /* Text fault */
 
#define SP_TRAP_II   0x2 /* Illegal Instruction */
 
#define SP_TRAP_PI   0x3 /* Privileged Instruction */
 
#define SP_TRAP_FPD   0x4 /* Floating Point Disabled */
 
#define SP_TRAP_WOVF   0x5 /* Window Overflow */
 
#define SP_TRAP_WUNF   0x6 /* Window Underflow */
 
#define SP_TRAP_MNA   0x7 /* Memory Address Unaligned */
 
#define SP_TRAP_FPE   0x8 /* Floating Point Exception */
 
#define SP_TRAP_DFLT   0x9 /* Data Fault */
 
#define SP_TRAP_TOF   0xa /* Tag Overflow */
 
#define SP_TRAP_WDOG   0xb /* Watchpoint Detected */
 
#define SP_TRAP_IRQ1   0x11 /* IRQ level 1 */
 
#define SP_TRAP_IRQ2   0x12 /* IRQ level 2 */
 
#define SP_TRAP_IRQ3   0x13 /* IRQ level 3 */
 
#define SP_TRAP_IRQ4   0x14 /* IRQ level 4 */
 
#define SP_TRAP_IRQ5   0x15 /* IRQ level 5 */
 
#define SP_TRAP_IRQ6   0x16 /* IRQ level 6 */
 
#define SP_TRAP_IRQ7   0x17 /* IRQ level 7 */
 
#define SP_TRAP_IRQ8   0x18 /* IRQ level 8 */
 
#define SP_TRAP_IRQ9   0x19 /* IRQ level 9 */
 
#define SP_TRAP_IRQ10   0x1a /* IRQ level 10 */
 
#define SP_TRAP_IRQ11   0x1b /* IRQ level 11 */
 
#define SP_TRAP_IRQ12   0x1c /* IRQ level 12 */
 
#define SP_TRAP_IRQ13   0x1d /* IRQ level 13 */
 
#define SP_TRAP_IRQ14   0x1e /* IRQ level 14 */
 
#define SP_TRAP_IRQ15   0x1f /* IRQ level 15 Non-maskable */
 
#define SP_TRAP_RACC   0x20 /* Register Access Error ??? */
 
#define SP_TRAP_IACC   0x21 /* Instruction Access Error */
 
#define SP_TRAP_CPDIS   0x24 /* Co-Processor Disabled */
 
#define SP_TRAP_BADFL   0x25 /* Unimplemented Flush Instruction */
 
#define SP_TRAP_CPEXP   0x28 /* Co-Processor Exception */
 
#define SP_TRAP_DACC   0x29 /* Data Access Error */
 
#define SP_TRAP_DIVZ   0x2a /* Divide By Zero */
 
#define SP_TRAP_DSTORE   0x2b /* Data Store Error ??? */
 
#define SP_TRAP_DMM   0x2c /* Data Access MMU Miss ??? */
 
#define SP_TRAP_IMM   0x3c /* Instruction Access MMU Miss ??? */
 
#define SP_TRAP_SUNOS   0x80 /* SunOS System Call */
 
#define SP_TRAP_SBPT   0x81 /* Software Breakpoint */
 
#define SP_TRAP_SDIVZ   0x82 /* Software Divide-by-Zero trap */
 
#define SP_TRAP_FWIN   0x83 /* Flush Windows */
 
#define SP_TRAP_CWIN   0x84 /* Clean Windows */
 
#define SP_TRAP_RCHK   0x85 /* Range Check */
 
#define SP_TRAP_FUNA   0x86 /* Fix Unaligned Access */
 
#define SP_TRAP_IOWFL   0x87 /* Integer Overflow */
 
#define SP_TRAP_SOLARIS   0x88 /* Solaris System Call */
 
#define SP_TRAP_NETBSD   0x89 /* NetBSD System Call */
 
#define SP_TRAP_LINUX   0x90 /* Linux System Call */
 
#define ST_SYSCALL   0x00
 
#define ST_BREAKPOINT   0x01
 
#define ST_DIV0   0x02
 
#define ST_FLUSH_WINDOWS   0x03
 
#define ST_CLEAN_WINDOWS   0x04
 
#define ST_RANGE_CHECK   0x05
 
#define ST_FIX_ALIGN   0x06
 
#define ST_INT_OVERFLOW   0x07
 
#define SP_TRAP_KBPT1   0xfe /* KADB/PROM Breakpoint one */
 
#define SP_TRAP_KBPT2   0xff /* KADB/PROM Breakpoint two */
 
#define BAD_TRAP_P(level)
 
#define HW_TRAP_P(level)   ((level > 0) && (level < SP_TRAP_SUNOS))
 
#define SW_TRAP_P(level)   ((level >= SP_TRAP_SUNOS) && (level <= SP_TRAP_KBPT2))
 
#define SCALL_TRAP_P(level)
 

Macro Definition Documentation

#define BAD_TRAP_P (   level)
#define HW_TRAP_P (   level)    ((level > 0) && (level < SP_TRAP_SUNOS))

Definition at line 109 of file traps.h.

#define NUM_SPARC_TRAPS   255

Definition at line 10 of file traps.h.

#define SCALL_TRAP_P (   level)
Value:

Definition at line 115 of file traps.h.

#define SP_TRAP_BADFL   0x25 /* Unimplemented Flush Instruction */

Definition at line 63 of file traps.h.

#define SP_TRAP_CPDIS   0x24 /* Co-Processor Disabled */

Definition at line 62 of file traps.h.

#define SP_TRAP_CPEXP   0x28 /* Co-Processor Exception */

Definition at line 64 of file traps.h.

#define SP_TRAP_CWIN   0x84 /* Clean Windows */

Definition at line 76 of file traps.h.

#define SP_TRAP_DACC   0x29 /* Data Access Error */

Definition at line 65 of file traps.h.

#define SP_TRAP_DFLT   0x9 /* Data Fault */

Definition at line 42 of file traps.h.

#define SP_TRAP_DIVZ   0x2a /* Divide By Zero */

Definition at line 66 of file traps.h.

#define SP_TRAP_DMM   0x2c /* Data Access MMU Miss ??? */

Definition at line 68 of file traps.h.

#define SP_TRAP_DSTORE   0x2b /* Data Store Error ??? */

Definition at line 67 of file traps.h.

#define SP_TRAP_FPD   0x4 /* Floating Point Disabled */

Definition at line 37 of file traps.h.

#define SP_TRAP_FPE   0x8 /* Floating Point Exception */

Definition at line 41 of file traps.h.

#define SP_TRAP_FUNA   0x86 /* Fix Unaligned Access */

Definition at line 78 of file traps.h.

#define SP_TRAP_FWIN   0x83 /* Flush Windows */

Definition at line 75 of file traps.h.

#define SP_TRAP_IACC   0x21 /* Instruction Access Error */

Definition at line 61 of file traps.h.

#define SP_TRAP_II   0x2 /* Illegal Instruction */

Definition at line 35 of file traps.h.

#define SP_TRAP_IMM   0x3c /* Instruction Access MMU Miss ??? */

Definition at line 69 of file traps.h.

#define SP_TRAP_IOWFL   0x87 /* Integer Overflow */

Definition at line 79 of file traps.h.

#define SP_TRAP_IRQ1   0x11 /* IRQ level 1 */

Definition at line 45 of file traps.h.

#define SP_TRAP_IRQ10   0x1a /* IRQ level 10 */

Definition at line 54 of file traps.h.

#define SP_TRAP_IRQ11   0x1b /* IRQ level 11 */

Definition at line 55 of file traps.h.

#define SP_TRAP_IRQ12   0x1c /* IRQ level 12 */

Definition at line 56 of file traps.h.

#define SP_TRAP_IRQ13   0x1d /* IRQ level 13 */

Definition at line 57 of file traps.h.

#define SP_TRAP_IRQ14   0x1e /* IRQ level 14 */

Definition at line 58 of file traps.h.

#define SP_TRAP_IRQ15   0x1f /* IRQ level 15 Non-maskable */

Definition at line 59 of file traps.h.

#define SP_TRAP_IRQ2   0x12 /* IRQ level 2 */

Definition at line 46 of file traps.h.

#define SP_TRAP_IRQ3   0x13 /* IRQ level 3 */

Definition at line 47 of file traps.h.

#define SP_TRAP_IRQ4   0x14 /* IRQ level 4 */

Definition at line 48 of file traps.h.

#define SP_TRAP_IRQ5   0x15 /* IRQ level 5 */

Definition at line 49 of file traps.h.

#define SP_TRAP_IRQ6   0x16 /* IRQ level 6 */

Definition at line 50 of file traps.h.

#define SP_TRAP_IRQ7   0x17 /* IRQ level 7 */

Definition at line 51 of file traps.h.

#define SP_TRAP_IRQ8   0x18 /* IRQ level 8 */

Definition at line 52 of file traps.h.

#define SP_TRAP_IRQ9   0x19 /* IRQ level 9 */

Definition at line 53 of file traps.h.

#define SP_TRAP_KBPT1   0xfe /* KADB/PROM Breakpoint one */

Definition at line 95 of file traps.h.

#define SP_TRAP_KBPT2   0xff /* KADB/PROM Breakpoint two */

Definition at line 96 of file traps.h.

#define SP_TRAP_LINUX   0x90 /* Linux System Call */

Definition at line 82 of file traps.h.

#define SP_TRAP_MNA   0x7 /* Memory Address Unaligned */

Definition at line 40 of file traps.h.

#define SP_TRAP_NETBSD   0x89 /* NetBSD System Call */

Definition at line 81 of file traps.h.

#define SP_TRAP_PI   0x3 /* Privileged Instruction */

Definition at line 36 of file traps.h.

#define SP_TRAP_RACC   0x20 /* Register Access Error ??? */

Definition at line 60 of file traps.h.

#define SP_TRAP_RCHK   0x85 /* Range Check */

Definition at line 77 of file traps.h.

#define SP_TRAP_SBPT   0x81 /* Software Breakpoint */

Definition at line 73 of file traps.h.

#define SP_TRAP_SDIVZ   0x82 /* Software Divide-by-Zero trap */

Definition at line 74 of file traps.h.

#define SP_TRAP_SOLARIS   0x88 /* Solaris System Call */

Definition at line 80 of file traps.h.

#define SP_TRAP_SUNOS   0x80 /* SunOS System Call */

Definition at line 72 of file traps.h.

#define SP_TRAP_TFLT   0x1 /* Text fault */

Definition at line 34 of file traps.h.

#define SP_TRAP_TOF   0xa /* Tag Overflow */

Definition at line 43 of file traps.h.

#define SP_TRAP_WDOG   0xb /* Watchpoint Detected */

Definition at line 44 of file traps.h.

#define SP_TRAP_WOVF   0x5 /* Window Overflow */

Definition at line 38 of file traps.h.

#define SP_TRAP_WUNF   0x6 /* Window Underflow */

Definition at line 39 of file traps.h.

#define SPARC_BRANCH (   dest_addr,
  inst_addr 
)    (0x10800000 | (((dest_addr-inst_addr)>>2)&0x3fffff))

Definition at line 25 of file traps.h.

#define SPARC_MOV_CONST_L3 (   const)    (0xa6102000 | (const&0xfff))

Definition at line 19 of file traps.h.

#define SPARC_NOP   (0x01000000)

Definition at line 30 of file traps.h.

#define SPARC_RD_PSR_L0   (0xa1480000)

Definition at line 28 of file traps.h.

#define SPARC_RD_WIM_L3   (0xa7500000)

Definition at line 29 of file traps.h.

#define ST_BREAKPOINT   0x01

Definition at line 86 of file traps.h.

#define ST_CLEAN_WINDOWS   0x04

Definition at line 89 of file traps.h.

#define ST_DIV0   0x02

Definition at line 87 of file traps.h.

#define ST_FIX_ALIGN   0x06

Definition at line 91 of file traps.h.

#define ST_FLUSH_WINDOWS   0x03

Definition at line 88 of file traps.h.

#define ST_INT_OVERFLOW   0x07

Definition at line 92 of file traps.h.

#define ST_RANGE_CHECK   0x05

Definition at line 90 of file traps.h.

#define ST_SYSCALL   0x00

Definition at line 85 of file traps.h.

#define SW_TRAP_P (   level)    ((level >= SP_TRAP_SUNOS) && (level <= SP_TRAP_KBPT2))

Definition at line 112 of file traps.h.