Rev 1851 | Rev 1855 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1851 | Rev 1852 | ||
---|---|---|---|
Line 83... | Line 83... | ||
83 | */ |
83 | */ |
84 | #define PREEMPTIBLE_HANDLER_STACK_FRAME_SIZE (STACK_WINDOW_SAVE_AREA_SIZE+(4*8)) |
84 | #define PREEMPTIBLE_HANDLER_STACK_FRAME_SIZE (STACK_WINDOW_SAVE_AREA_SIZE+(4*8)) |
85 | #define SAVED_TSTATE -(1*8) |
85 | #define SAVED_TSTATE -(1*8) |
86 | #define SAVED_TPC -(2*8) |
86 | #define SAVED_TPC -(2*8) |
87 | #define SAVED_TNPC -(3*8) |
87 | #define SAVED_TNPC -(3*8) |
88 | #define SAVED_PSTATE -(4*8) |
- | |
89 | 88 | ||
90 | .macro PREEMPTIBLE_HANDLER f |
89 | .macro PREEMPTIBLE_HANDLER f |
91 | set \f, %l0 |
90 | sethi %hi(\f), %g1 |
92 | b preemptible_handler |
91 | b preemptible_handler |
93 | nop |
92 | or %g1, %lo(\f), %g1 |
94 | .endm |
93 | .endm |
95 | 94 | ||
96 | .macro SIMPLE_HANDLER f |
95 | .macro SIMPLE_HANDLER f |
97 | call \f |
96 | call \f |
98 | nop |
97 | nop |