Rev 3022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | /** @addtogroup sparc64interrupt |
29 | /** @addtogroup sparc64interrupt |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** |
32 | /** |
33 | * @file |
33 | * @file |
34 | * @brief This file contains the trap_instruction handler. |
- | |
35 | * |
34 | * @brief |
36 | * The trap_instruction trap is used to implement syscalls. |
- | |
37 | */ |
35 | */ |
38 | 36 | ||
39 | #ifndef KERN_sparc64_SYSCALL_TRAP_H_ |
37 | #ifndef KERN_sparc64_SYSCALL_TRAP_H_ |
40 | #define KERN_sparc64_SYSCALL_TRAP_H_ |
38 | #define KERN_sparc64_SYSCALL_TRAP_H_ |
41 | 39 | ||
42 | #define TT_TRAP_INSTRUCTION(n) (0x100 + (n)) |
40 | #define TT_TRAP_INSTRUCTION_0 0x100 |
43 | #define TT_TRAP_INSTRUCTION_LAST TT_TRAP_INSTRUCTION(127) |
- | |
44 | - | ||
45 | #ifdef __ASM__ |
- | |
46 | - | ||
47 | .macro TRAP_INSTRUCTION n |
- | |
48 | ba trap_instruction_handler |
- | |
49 | mov TT_TRAP_INSTRUCTION(\n) - TT_TRAP_INSTRUCTION(0), %g2 |
- | |
50 | .endm |
- | |
51 | - | ||
52 | #endif /* __ASM__ */ |
- | |
53 | 41 | ||
54 | #endif |
42 | #endif |
55 | 43 | ||
56 | /** @} |
44 | /** @} |
57 | */ |
45 | */ |