Subversion Repositories HelenOS

Rev

Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2610
Line 43... Line 43...
43
#define TT_TRAP_INSTRUCTION_LAST    TT_TRAP_INSTRUCTION(127)
43
#define TT_TRAP_INSTRUCTION_LAST    TT_TRAP_INSTRUCTION(127)
44
 
44
 
45
#ifdef __ASM__
45
#ifdef __ASM__
46
 
46
 
47
.macro TRAP_INSTRUCTION n
47
.macro TRAP_INSTRUCTION n
48
    mov TT_TRAP_INSTRUCTION(\n), %g2
-
 
49
    sethi %hi(syscall), %g1
-
 
50
    ba trap_instruction_handler
48
    ba trap_instruction_handler
51
    or %g1, %lo(syscall), %g1
49
    mov TT_TRAP_INSTRUCTION(\n) - TT_TRAP_INSTRUCTION(0), %g2
52
.endm
50
.endm
53
 
51
 
54
#endif /* __ASM__ */
52
#endif /* __ASM__ */
55
 
53
 
56
#endif
54
#endif