OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 // | 4 // |
5 // System calls and other sys.stuff for 386, FreeBSD | 5 // System calls and other sys.stuff for 386, FreeBSD |
6 // /usr/src/sys/kern/syscalls.master for syscall numbers. | 6 // /usr/src/sys/kern/syscalls.master for syscall numbers. |
7 // | 7 // |
8 | 8 |
9 #include "zasm_GOOS_GOARCH.h" | 9 #include "zasm_GOOS_GOARCH.h" |
10 ········ | 10 ········ |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 JAE 2(PC) | 155 JAE 2(PC) |
156 MOVL $0xf1, 0xf1 // crash | 156 MOVL $0xf1, 0xf1 // crash |
157 RET | 157 RET |
158 | 158 |
159 TEXT runtime·sigtramp(SB),7,$44 | 159 TEXT runtime·sigtramp(SB),7,$44 |
160 get_tls(CX) | 160 get_tls(CX) |
161 | 161 |
162 // check that m exists | 162 // check that m exists |
163 MOVL m(CX), BX | 163 MOVL m(CX), BX |
164 CMPL BX, $0 | 164 CMPL BX, $0 |
165 » JNE» 2(PC) | 165 » JNE» 5(PC) |
| 166 » MOVL» signo+0(FP), BX |
| 167 » MOVL» BX, 0(SP) |
166 CALL runtime·badsignal(SB) | 168 CALL runtime·badsignal(SB) |
| 169 RET |
167 | 170 |
168 // save g | 171 // save g |
169 MOVL g(CX), DI | 172 MOVL g(CX), DI |
170 MOVL DI, 20(SP) | 173 MOVL DI, 20(SP) |
171 ········ | 174 ········ |
172 // g = m->gsignal | 175 // g = m->gsignal |
173 MOVL m_gsignal(BX), BX | 176 MOVL m_gsignal(BX), BX |
174 MOVL BX, g(CX) | 177 MOVL BX, g(CX) |
175 | 178 |
176 // copy arguments for call to sighandler | 179 // copy arguments for call to sighandler |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 MOVL AX, 8(SP) // arg 2 - set | 318 MOVL AX, 8(SP) // arg 2 - set |
316 MOVL args+4(FP), AX | 319 MOVL args+4(FP), AX |
317 MOVL AX, 12(SP) // arg 3 - oset | 320 MOVL AX, 12(SP) // arg 3 - oset |
318 MOVL $340, AX // sys_sigprocmask | 321 MOVL $340, AX // sys_sigprocmask |
319 INT $0x80 | 322 INT $0x80 |
320 JAE 2(PC) | 323 JAE 2(PC) |
321 MOVL $0xf1, 0xf1 // crash | 324 MOVL $0xf1, 0xf1 // crash |
322 RET | 325 RET |
323 | 326 |
324 GLOBL runtime·tlsoffset(SB),$4 | 327 GLOBL runtime·tlsoffset(SB),$4 |
OLD | NEW |